Skip to content

Commit a61318d

Browse files
committed
Uncomment TracebackType and FrameType in types.py
1 parent 57b149b commit a61318d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Lib/types.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ def _m(self): pass
4444

4545
ModuleType = type(sys)
4646

47-
# try:
48-
# raise TypeError
49-
# except TypeError:
50-
# tb = sys.exc_info()[2]
51-
# TracebackType = type(tb)
52-
# FrameType = type(tb.tb_frame)
53-
# tb = None; del tb
47+
try:
48+
raise TypeError
49+
except TypeError:
50+
tb = sys.exc_info()[2]
51+
TracebackType = type(tb)
52+
FrameType = type(tb.tb_frame)
53+
tb = None; del tb
5454

5555
# For Jython, the following two types are identical
5656
GetSetDescriptorType = type(FunctionType.__code__)

0 commit comments

Comments
 (0)