[Python-checkins] python/dist/src/Lib rexec.py,1.44,1.45

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Fri, 11 Oct 2002 09:20:48 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv19612

Modified Files:
	rexec.py 
Log Message:
Allow restricted code to get byteorder, getdefaultencoding(),
getrefcount(), maxunicode, and version_info.


Index: rexec.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/rexec.py,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** rexec.py	11 Oct 2002 16:05:07 -0000	1.44
--- rexec.py	11 Oct 2002 16:20:45 -0000	1.45
***************
*** 144,149 ****
                        'getcwd', 'getuid', 'getgid', 'geteuid', 'getegid')
  
!     ok_sys_names = ('copyright', 'exit', 'hexversion', 'maxint', 'platform',
!                     'ps1', 'ps2', 'version')
  
      nok_builtin_names = ('open', 'file', 'reload', '__import__')
--- 144,150 ----
                        'getcwd', 'getuid', 'getgid', 'geteuid', 'getegid')
  
!     ok_sys_names = ('byteorder', 'copyright', 'exit', 'getdefaultencoding',
!                     'getrefcount', 'hexversion', 'maxint', 'maxunicode',
!                     'platform', 'ps1', 'ps2', 'version', 'version_info')
  
      nok_builtin_names = ('open', 'file', 'reload', '__import__')