]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Allow restricted code to get byteorder, getdefaultencoding(),
authorFred Drake <fdrake@acm.org>
Fri, 11 Oct 2002 16:20:45 +0000 (16:20 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 11 Oct 2002 16:20:45 +0000 (16:20 +0000)
getrefcount(), maxunicode, and version_info.

Lib/rexec.py

index fdead817afe60ed3da1b2466d335f280c1f02539..d399545016b4bd61d764cae613722bbe2e018d88 100644 (file)
@@ -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__')