From: Terry Jan Reedy Date: Tue, 9 Aug 2022 17:42:16 +0000 (-0400) Subject: [3.11] gh-88878: IDLE - replace type('') with str (#95792) X-Git-Tag: v3.11.0rc2~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a22ec5d69c2cbe51afdaff2cc3bc25a9514dd4f;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-88878: IDLE - replace type('') with str (#95792) Change in idlelib.browser, line 54 cherrypicked from 3680ebed7f3e529d01996dd0318601f9f0d02b4b --- diff --git a/Lib/idlelib/browser.py b/Lib/idlelib/browser.py index 10d9a7261113..4fe64dced60a 100644 --- a/Lib/idlelib/browser.py +++ b/Lib/idlelib/browser.py @@ -52,7 +52,7 @@ def transform_children(child_dict, modname=None): # If obj.name != key, it has already been suffixed. supers = [] for sup in obj.super: - if type(sup) is type(''): + if isinstance(sup, str): sname = sup else: sname = sup.name