summaryrefslogtreecommitdiffstats
path: root/Lib/rexec.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-01-06 15:43:34 (GMT)
committerGuido van Rossum <guido@python.org>2003-01-06 15:43:34 (GMT)
commit34a2e0858662fc314fe5d27048654eb74cee3148 (patch)
tree51677554f80f15c76040db5da34cab56ea0558e4 /Lib/rexec.py
parent2b0a3d33f86d85e598bcb08be57fd4c8f0e2118b (diff)
downloadcpython-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/rexec.py')
-rw-r--r--Lib/rexec.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py
index b1a1427..f7aa640 100644
--- a/Lib/rexec.py
+++ b/Lib/rexec.py
@@ -180,6 +180,9 @@ class RExec(ihooks._Verbose):
sent to standard output.
"""
+
+ raise RuntimeError, "This code is not secure in Python 2.2 and 2.3"
+
ihooks._Verbose.__init__(self, verbose)
# XXX There's a circular reference here:
self.hooks = hooks or RHooks(verbose)