[Python-checkins] python/dist/src/Lib Bastion.py,1.6,1.7
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Mon, 06 Jan 2003 07:43:36 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv16331
Modified Files:
Bastion.py
Log Message:
Sabotage rexec.py. It is not safe since the new-style classes.
Index: Bastion.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/Bastion.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Bastion.py 20 Jan 2001 19:54:20 -0000 1.6
--- Bastion.py 6 Jan 2003 15:43:34 -0000 1.7
***************
*** 98,101 ****
--- 98,103 ----
"""
+ raise RuntimeError, "This code is not secure in Python 2.2 and 2.3"
+
# Note: we define *two* ad-hoc functions here, get1 and get2.
# Both are intended to be called in the same way: get(name).