From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 17 Sep 2022 22:14:54 +0000 (-0700) Subject: gh-87179: Fix more IDLE class headers (GH-96899) X-Git-Tag: v3.10.8~129 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a978e2fa199c4bd146d0ba17181ed6150f35ccbb;p=thirdparty%2FPython%2Fcpython.git gh-87179: Fix more IDLE class headers (GH-96899) Remove unneeded '(object)' and '()'. (cherry picked from commit aa671b48d62a00c5ab87fb102be15dd5eeac84dd) Co-authored-by: Terry Jan Reedy --- 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