Skip to content

Commit c521b76

Browse files
committed
Revert "remove extra 'del inspect'"; add missing comma
This reverts commit 8806877.
1 parent 8806877 commit c521b76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def lookup_special(object, name, default=_sentinel):
9999
try:
100100
descr = inspect.getattr_static(cls, name)
101101
except AttributeError:
102-
if default is not _sentinel:
102+
if not default is _sentinel:
103103
return default
104104
raise
105105
if hasattr(descr, "__get__"):
@@ -110,7 +110,7 @@ def lookup_special(object, name, default=_sentinel):
110110

111111
lookup_special = enclose_lookup_special()
112112

113-
del sys, _f, _g, _C, _c, _ag, _cell_factory # Not for export
113+
del sys, inspect, _f, _g, _C, _c, _ag, _cell_factory # Not for export
114114

115115

116116
# Provide a PEP 3115 compliant mechanism for class creation

0 commit comments

Comments
 (0)