From a61318df8fdb6877a06adbfe9474e90de22a4b2c Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Fri, 28 Feb 2020 21:16:49 -0600 Subject: [PATCH] Uncomment TracebackType and FrameType in types.py --- Lib/types.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Lib/types.py b/Lib/types.py index d088912d4..fdb71f9c1 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -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__)