Uncomment TracebackType and FrameType in types.py

This commit is contained in:
Noah committed 2020-03-01 14:36:01 -06:00
1 parent 57b149ba81
commit a61318df8f
1 file changed
+7 -7
+7 -7
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__)