mirror of https://github.com/python/cpython.git
[3.11] gh-88878: IDLE - replace type('') with str (#95792)
Change in idlelib.browser, line 54
cherrypicked from 3680ebed7f
This commit is contained in:
parent
77fccc29df
commit
1a22ec5d69
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue