Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dd147fe4
Commit
dd147fe4
authored
Jan 06, 2003
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sabotage rexec.py. It is not safe since the new-style classes.
parent
728bfa77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Lib/Bastion.py
Lib/Bastion.py
+2
-0
Lib/rexec.py
Lib/rexec.py
+3
-0
No files found.
Lib/Bastion.py
View file @
dd147fe4
...
...
@@ -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
...
...
Lib/rexec.py
View file @
dd147fe4
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment