[Python-checkins] gh-87179: Fix more IDLE class headers (GH-96899)
miss-islington
webhook-mailer at python.org
Sat Sep 17 18:15:00 EDT 2022
https://github.com/python/cpython/commit/a978e2fa199c4bd146d0ba17181ed6150f35ccbb
commit: a978e2fa199c4bd146d0ba17181ed6150f35ccbb
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-09-17T15:14:54-07:00
summary:
gh-87179: Fix more IDLE class headers (GH-96899)
Remove unneeded '(object)' and '()'.
(cherry picked from commit aa671b48d62a00c5ab87fb102be15dd5eeac84dd)
Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>
files:
M Lib/idlelib/idle_test/test_text.py
M Lib/idlelib/idle_test/test_zzdummy.py
diff --git a/Lib/idlelib/idle_test/test_text.py b/Lib/idlelib/idle_test/test_text.py
index 0f31179e04b2..43a9ba02c3d3 100644
--- a/Lib/idlelib/idle_test/test_text.py
+++ b/Lib/idlelib/idle_test/test_text.py
@@ -6,7 +6,7 @@
from test.support import requires
from _tkinter import TclError
-class TextTest(object):
+class TextTest:
"Define items common to both sets of tests."
hw = 'hello\nworld' # Several tests insert this after initialization.
diff --git a/Lib/idlelib/idle_test/test_zzdummy.py b/Lib/idlelib/idle_test/test_zzdummy.py
index 1013cdc3c46f..209d8564da06 100644
--- a/Lib/idlelib/idle_test/test_zzdummy.py
+++ b/Lib/idlelib/idle_test/test_zzdummy.py
@@ -19,7 +19,7 @@
}
code_sample = """\
-class C1():
+class C1:
# Class comment.
def __init__(self, a, b):
self.a = a
More information about the Python-checkins
mailing list