]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-87179: Fix more IDLE class headers (#96899)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 17 Sep 2022 21:53:23 +0000 (17:53 -0400)
committerGitHub <noreply@github.com>
Sat, 17 Sep 2022 21:53:23 +0000 (17:53 -0400)
Remove unneeded '(object)' and '()'.

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