]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-87179: Fix more IDLE class headers (GH-96899)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Sep 2022 22:14:54 +0000 (15:14 -0700)
committerGitHub <noreply@github.com>
Sat, 17 Sep 2022 22:14:54 +0000 (15:14 -0700)
Remove unneeded '(object)' and '()'.
(cherry picked from commit aa671b48d62a00c5ab87fb102be15dd5eeac84dd)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/idle_test/test_text.py
Lib/idlelib/idle_test/test_zzdummy.py

index 0f31179e04b28f239fe1729ed5b6acc6cb5772a6..43a9ba02c3d3c9a8739ec85e4780fc03743ef29c 100644 (file)
@@ -6,7 +6,7 @@ import unittest
 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.
index 1013cdc3c46f4f5243da4d955cab722180f091d0..209d8564da06641f38e352846a24592636186c77 100644 (file)
@@ -19,7 +19,7 @@ testcfg = {
 }
 code_sample = """\
 
-class C1():
+class C1:
     # Class comment.
     def __init__(self, a, b):
         self.a = a