Uncomment TracebackType and FrameType in types.py

This commit is contained in:
Noah
2020-02-28 21:16:49 -06:00
parent 57b149ba81
commit a61318df8f

14
Lib/types.py vendored
View File

@@ -44,13 +44,13 @@ ClassMethodDescriptorType = type(dict.__dict__['fromkeys'])
ModuleType = type(sys)
# try:
# raise TypeError
# except TypeError:
# tb = sys.exc_info()[2]
# TracebackType = type(tb)
# FrameType = type(tb.tb_frame)
# tb = None; del tb
try:
raise TypeError
except TypeError:
tb = sys.exc_info()[2]
TracebackType = type(tb)
FrameType = type(tb.tb_frame)
tb = None; del tb
# For Jython, the following two types are identical
GetSetDescriptorType = type(FunctionType.__code__)