Commit dd147fe4 authored by Guido van Rossum's avatar Guido van Rossum

Sabotage rexec.py. It is not safe since the new-style classes.

parent 728bfa77
......@@ -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
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment