From: Terry Jan Reedy Date: Sat, 17 Sep 2022 21:53:23 +0000 (-0400) Subject: gh-87179: Fix more IDLE class headers (#96899) X-Git-Tag: v3.12.0a1~394 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa671b48d62a00c5ab87fb102be15dd5eeac84dd;p=thirdparty%2FPython%2Fcpython.git gh-87179: Fix more IDLE class headers (#96899) Remove unneeded '(object)' and '()'. --- 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 @@ 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. 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 @@ testcfg = { } code_sample = """\ -class C1(): +class C1: # Class comment. def __init__(self, a, b): self.a = a