diff options
author | Fred Drake <fdrake@acm.org> | 2002-10-11 16:20:45 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-10-11 16:20:45 (GMT) |
commit | a0f453b2b14df707532a584c27fcfc158f233d4b (patch) | |
tree | 374e1c48ad9790c4d143d15c940c2eb31dd0cafb /Lib/rexec.py | |
parent | 83d0fd2fd186ff494b80e02e4cf40d330af81b2e (diff) | |
download | cpython-a0f453b2b14df707532a584c27fcfc158f233d4b.zip cpython-a0f453b2b14df707532a584c27fcfc158f233d4b.tar.gz cpython-a0f453b2b14df707532a584c27fcfc158f233d4b.tar.bz2 |
Allow restricted code to get byteorder, getdefaultencoding(),
getrefcount(), maxunicode, and version_info.
Diffstat (limited to 'Lib/rexec.py')
-rw-r--r-- | Lib/rexec.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py index fdead81..d399545 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -143,8 +143,9 @@ class RExec(ihooks._Verbose): 'stat', 'times', 'uname', 'getpid', 'getppid', 'getcwd', 'getuid', 'getgid', 'geteuid', 'getegid') - ok_sys_names = ('copyright', 'exit', 'hexversion', 'maxint', 'platform', - 'ps1', 'ps2', 'version') + ok_sys_names = ('byteorder', 'copyright', 'exit', 'getdefaultencoding', + 'getrefcount', 'hexversion', 'maxint', 'maxunicode', + 'platform', 'ps1', 'ps2', 'version', 'version_info') nok_builtin_names = ('open', 'file', 'reload', '__import__') |