summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2022-08-09 17:42:16 (GMT)
committerGitHub <noreply@github.com>2022-08-09 17:42:16 (GMT)
commit1a22ec5d69c2cbe51afdaff2cc3bc25a9514dd4f (patch)
treeac5fb56f6cb259709b79bd2f3c535dbe34d717bb /Lib/idlelib
parent77fccc29dfab51e924848dda6ee14db24d789064 (diff)
downloadcpython-1a22ec5d69c2cbe51afdaff2cc3bc25a9514dd4f.zip
cpython-1a22ec5d69c2cbe51afdaff2cc3bc25a9514dd4f.tar.gz
cpython-1a22ec5d69c2cbe51afdaff2cc3bc25a9514dd4f.tar.bz2
[3.11] gh-88878: IDLE - replace type('') with str (#95792)
Change in idlelib.browser, line 54 cherrypicked from 3680ebed7f3e529d01996dd0318601f9f0d02b4b
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/browser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/browser.py b/Lib/idlelib/browser.py
index 10d9a72..4fe64dc 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