[3.11] gh-88878: IDLE - replace type('') with str (#95792)

Change in idlelib.browser, line 54
cherrypicked from 3680ebed7f
This commit is contained in:
Terry Jan Reedy 2022-08-09 13:42:16 -04:00 committed by GitHub
parent 77fccc29df
commit 1a22ec5d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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