8000 Update cgitb.py to 3.12 (#5197) · RustPython/RustPython@d8f2bd0 · GitHub
[go: up one dir, main page]

Skip to content

Commit d8f2bd0

Browse files
authored
Update cgitb.py to 3.12 (#5197)
1 parent 855fa14 commit d8f2bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/cgitb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def lookup(name, frame, locals):
7474
return 'global', frame.f_globals[name]
7575
if '__builtins__' in frame.f_globals:
7676
builtins = frame.f_globals['__builtins__']
77-
if type(builtins) is type({}):
77+
if isinstance(builtins, dict):
7878
if name in builtins:
7979
return 'builtin', builtins[name]
8080
else:

0 commit comments

Comments
 (0)
0