summaryrefslogtreecommitdiff
path: root/Lib/new.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/new.py')
-rw-r--r--Lib/new.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/new.py b/Lib/new.py
index e5f964f87e..2a6e631552 100644
--- a/Lib/new.py
+++ b/Lib/new.py
@@ -14,8 +14,4 @@ from types import InstanceType as instance
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