summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-10-11 16:20:45 (GMT)
committerFred Drake <fdrake@acm.org>2002-10-11 16:20:45 (GMT)
commita0f453b2b14df707532a584c27fcfc158f233d4b (patch)
tree374e1c48ad9790c4d143d15c940c2eb31dd0cafb /Lib
parent83d0fd2fd186ff494b80e02e4cf40d330af81b2e (diff)
downloadcpython-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')
-rw-r--r--Lib/rexec.py5
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__')