mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Sabotage rexec.py. It is not safe since the new-style classes.
This commit is contained in:
parent
2b0a3d33f8
commit
34a2e08586
2 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue