mirror of https://github.com/python/cpython
Alas, I have to restore 'marshal', since it is needed by the new
cPickle-compatible pickle, and pickle must be importable in restricted mode. I guess I'll have to make marshal safe.
This commit is contained in:
parent
5026cb4dc6
commit
faeae5cd78
|
@ -21,7 +21,6 @@ XXX To do:
|
||||||
import sys
|
import sys
|
||||||
import __builtin__
|
import __builtin__
|
||||||
import os
|
import os
|
||||||
import marshal
|
|
||||||
import ihooks
|
import ihooks
|
||||||
|
|
||||||
|
|
||||||
|
@ -133,7 +132,7 @@ class RExec(ihooks._Verbose):
|
||||||
|
|
||||||
ok_builtin_modules = ('audioop', 'array', 'binascii',
|
ok_builtin_modules = ('audioop', 'array', 'binascii',
|
||||||
'cmath', 'errno', 'imageop',
|
'cmath', 'errno', 'imageop',
|
||||||
'math', 'md5', 'operator',
|
'marshal', 'math', 'md5', 'operator',
|
||||||
'parser', 'regex', 'rotor', 'select',
|
'parser', 'regex', 'rotor', 'select',
|
||||||
'strop', 'struct', 'time')
|
'strop', 'struct', 'time')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue