mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
restricted environments are no more
This commit is contained in:
parent
7a7739d75e
commit
f6348f4589
2 changed files with 2 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue