commit | f6348f45899090f63e534d6772c98c67693bb774 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri Aug 28 16:48:03 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Fri Aug 28 16:48:03 2009 +0000 |
tree | 843f623a2688df5d7aa7423654aecdc89fb1001c | |
parent | 7a7739d75ed505033445248a126830bedb17101b [diff] [blame] |
restricted environments are no more
diff --git a/Lib/new.py b/Lib/new.py index e5f964f..2a6e631 100644 --- a/Lib/new.py +++ b/Lib/new.py
@@ -14,8 +14,4 @@ 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