Commit 4ff44abd authored by Fred Drake's avatar Fred Drake

Allow restricted code to get byteorder, getdefaultencoding(),

getrefcount(), maxunicode, and version_info.
parent 5e398ffe
...@@ -143,8 +143,9 @@ class RExec(ihooks._Verbose): ...@@ -143,8 +143,9 @@ class RExec(ihooks._Verbose):
'stat', 'times', 'uname', 'getpid', 'getppid', 'stat', 'times', 'uname', 'getpid', 'getppid',
'getcwd', 'getuid', 'getgid', 'geteuid', 'getegid') 'getcwd', 'getuid', 'getgid', 'geteuid', 'getegid')
ok_sys_names = ('copyright', 'exit', 'hexversion', 'maxint', 'platform', ok_sys_names = ('byteorder', 'copyright', 'exit', 'getdefaultencoding',
'ps1', 'ps2', 'version') 'getrefcount', 'hexversion', 'maxint', 'maxunicode',
'platform', 'ps1', 'ps2', 'version', 'version_info')
nok_builtin_names = ('open', 'file', 'reload', '__import__') nok_builtin_names = ('open', 'file', 'reload', '__import__')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment