From a0f453b2b14df707532a584c27fcfc158f233d4b Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 11 Oct 2002 16:20:45 +0000 Subject: [PATCH] Allow restricted code to get byteorder, getdefaultencoding(), getrefcount(), maxunicode, and version_info. --- Lib/rexec.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/rexec.py b/Lib/rexec.py index fdead817afe..d399545016b 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__')