diff options
author | Guido van Rossum <guido@python.org> | 2003-01-06 15:43:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-01-06 15:43:34 (GMT) |
commit | 34a2e0858662fc314fe5d27048654eb74cee3148 (patch) | |
tree | 51677554f80f15c76040db5da34cab56ea0558e4 /Lib/Bastion.py | |
parent | 2b0a3d33f86d85e598bcb08be57fd4c8f0e2118b (diff) | |
download | cpython-34a2e0858662fc314fe5d27048654eb74cee3148.zip cpython-34a2e0858662fc314fe5d27048654eb74cee3148.tar.gz cpython-34a2e0858662fc314fe5d27048654eb74cee3148.tar.bz2 |
Sabotage rexec.py. It is not safe since the new-style classes.
Diffstat (limited to 'Lib/Bastion.py')
-rw-r--r-- | Lib/Bastion.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/Bastion.py b/Lib/Bastion.py index 99990a2..ae2db74 100644 --- a/Lib/Bastion.py +++ b/Lib/Bastion.py @@ -97,6 +97,8 @@ def Bastion(object, filter = lambda name: name[:1] != '_', """ + 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). # It is clear that the real work (getting the attribute |