Skip to content

Commit 1a22ec5

Browse files
authored
[3.11] gh-88878: IDLE - replace type('') with str (#95792)
Change in idlelib.browser, line 54 cherrypicked from 3680ebe
1 parent 77fccc2 commit 1a22ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/idlelib/browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def transform_children(child_dict, modname=None):
5252
# If obj.name != key, it has already been suffixed.
5353
supers = []
5454
for sup in obj.super:
55-
if type(sup) is type(''):
55+
if isinstance(sup, str):
5656
sname = sup
5757
else:
5858
sname = sup.name

0 commit comments

Comments
 (0)