summaryrefslogtreecommitdiffstats
path: root/Lib/new.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/new.py')
-rw-r--r--Lib/new.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/new.py b/Lib/new.py
index bee11ed..5559f6e 100644
--- a/Lib/new.py
+++ b/Lib/new.py
@@ -8,9 +8,4 @@ from types import ClassType as classobj
from types import FunctionType as function
from types import MethodType as instancemethod
from types import ModuleType as module
-
-# CodeType is not accessible in restricted execution mode
-try:
- from types import CodeType as code
-except ImportError:
- pass
+from types import CodeType as code