84fedf7f061797b1fc95b778e517e6dc86e36db2 |
|
06-Feb-2010 |
Georg Brandl <georg@python.org> |
No need to assign the results of expressions used only for side effects.
/external/python/cpython2/Lib/rexec.py
|
4c1f881f1366ca2fcb55071f3a1b779867fe07d4 |
|
10-May-2008 |
Brett Cannon <bcannon@gmail.com> |
Deprecate Bastion and rexec for 3.0.
/external/python/cpython2/Lib/rexec.py
|
e2d827d7ef6cae4932c85e1a00b81ed249fbddeb |
|
12-Apr-2007 |
Georg Brandl <georg@python.org> |
Patch #1698951: clarify deprecation message in rexec and Bastion
/external/python/cpython2/Lib/rexec.py
|
10be10cbe72cc0cc0d05b2901f6857fdbb343894 |
|
16-Mar-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.
/external/python/cpython2/Lib/rexec.py
|
810b76aebeadd44d4fcf35595cda8bce87a77103 |
|
31-Aug-2004 |
Andrew M. Kuchling <amk@amk.ca> |
Remove rotor, xreadlines modules
/external/python/cpython2/Lib/rexec.py
|
acf261862d1e84516fc337abfd02f6c5017b364f |
|
02-Jun-2004 |
Andrew M. Kuchling <amk@amk.ca> |
Remove reference to pcre module
/external/python/cpython2/Lib/rexec.py
|
70a6b49821a3226f55e9716f32d802d06640cb89 |
|
12-Feb-2004 |
Walter Dörwald <walter@livinglogic.de> |
Replace backticks with repr() or "%r" From SF patch #852334.
/external/python/cpython2/Lib/rexec.py
|
68468eba635570400f607e140425a222018e56f9 |
|
27-Feb-2003 |
Guido van Rossum <guido@python.org> |
Get rid of many apply() calls.
/external/python/cpython2/Lib/rexec.py
|
34a2e0858662fc314fe5d27048654eb74cee3148 |
|
06-Jan-2003 |
Guido van Rossum <guido@python.org> |
Sabotage rexec.py. It is not safe since the new-style classes.
/external/python/cpython2/Lib/rexec.py
|
d5ae01a8037d5cba917aef531a3281760e82ed77 |
|
16-Dec-2002 |
Gustavo Niemeyer <gustavo@niemeyer.net> |
Applying patch [#636769] Fix for major rexec bugs * Lib/rexec.py (FileBase): Added 'xreadlines' and '__iter__' to allowed file methods. (FileWrapper.__init__): Removed unnecessary self.f variable, which gave direct access to the file object. (RExec): Added 'xreadlines' and '_weakref' to allowed modules. (RExec.r_open): Convert string subclasses to a real string classes before doing comparisons with mode parameter. * Lib/ihooks.py (BasicModuleImporter.import_module/reload/unload): Convert the module name to a real string before working with it. (ModuleImporter.import_module/import_it/reload): Convert the module name to a real strings before working with it. * Misc/NEWS Document the change.
/external/python/cpython2/Lib/rexec.py
|
a0f453b2b14df707532a584c27fcfc158f233d4b |
|
11-Oct-2002 |
Fred Drake <fdrake@acm.org> |
Allow restricted code to get byteorder, getdefaultencoding(), getrefcount(), maxunicode, and version_info.
/external/python/cpython2/Lib/rexec.py
|
83d0fd2fd186ff494b80e02e4cf40d330af81b2e |
|
11-Oct-2002 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Trying alphabet again
/external/python/cpython2/Lib/rexec.py
|
a325c42b2dfa38a9ecd2151d497d3ffc660ad07a |
|
11-Oct-2002 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Sort names alphabetically.
/external/python/cpython2/Lib/rexec.py
|
69dc0c5bf5aff342afb4fa35c44dc726e2cd772f |
|
11-Oct-2002 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Add hexversion to list of safe sys names (SF bug 621447). Bug fix candidate.
/external/python/cpython2/Lib/rexec.py
|
7f7c3d0a9c401d7bc9a9d86ec7181cf09c4b3bab |
|
15-Sep-2002 |
Guido van Rossum <guido@python.org> |
Address SF bug #577530: del __builtins__ breaks out of rexec Using the suggestion there: add_module() forces __builtin__ back; this fixes r_exec, r_eval, r_execfile. The interactive console had to be fixed separately, because it doesn't use r_exec, but relies on the 'locals' dict having the right __builtins__. Fixed this by subclassing InteractiveConsole and overriding runcode(), which does the exec. This changes the banner output slightly: instead of starting with *** RESTRICTED ***, a subtler (RestrictedConsole) is printed before the first >>> prompt. Also import readline (if it exists) when the interactive console is used, for more convenient input editing and history. This does not mean that rexec is now considered safe! But for those willing to take the risk, it's safer than before. (Note that a safety analysis of the code module would be wise if you plan to use the interactive console for real -- I've only ever used it to play with restricted mode.) This should be backported to 2.2 and 2.1.
/external/python/cpython2/Lib/rexec.py
|
da07ea72826b6b3b9249d664d1c22a10eefe5460 |
|
14-Jun-2002 |
Guido van Rossum <guido@python.org> |
Use code.interact(), which is even simpler, *and* imports readline when it can.
/external/python/cpython2/Lib/rexec.py
|
2aabac8276751c6a1a9758a410b8b837354967b8 |
|
14-Jun-2002 |
Guido van Rossum <guido@python.org> |
Don't poorly emulate the interactive interpreter, use code.InteractiveConsole to do a much better job.
/external/python/cpython2/Lib/rexec.py
|
54f0222547b1e92cd018ef132307a6f793dc9505 |
|
01-Jun-2002 |
Raymond Hettinger <python@rcn.com> |
SF 563203. Replaced 'has_key()' with 'in'.
/external/python/cpython2/Lib/rexec.py
|
59b2a74c752578cb67b02b6966f283fd049f646a |
|
31-May-2002 |
Guido van Rossum <guido@python.org> |
SF bug 533625 (Armin Rigo). rexec: potential security hole If a rexec instance allows writing in the current directory (a common thing to do), there's a way to execute bogus bytecode. Fix this by not allowing imports from .pyc files (in a way that allows a site to configure things so that .pyc files *are* allowed, if writing is not allowed). I'll apply this to 2.2 and 2.1 too.
/external/python/cpython2/Lib/rexec.py
|
1dbe6c07280250bb36edb135188912ad0df1a0a8 |
|
30-May-2002 |
Raymond Hettinger <python@rcn.com> |
Move statement out of comment block
/external/python/cpython2/Lib/rexec.py
|
aef22fb9cdf31fb7f0afc28ad049f08a89e23761 |
|
29-May-2002 |
Raymond Hettinger <python@rcn.com> |
Patch 560023 adding docstrings. 2.2 Candidate (after verifying modules were not updated after 2.2).
/external/python/cpython2/Lib/rexec.py
|
f902296a1889f9453ca0080525b8ffc1e21ed997 |
|
13-Oct-2001 |
Fred Drake <fdrake@acm.org> |
Ignore execfile() return value; reported by Neal Norwitz.
/external/python/cpython2/Lib/rexec.py
|
8fa45677c1833cc0d4ddaa57417c01ee8297eba8 |
|
13-Sep-2001 |
Tim Peters <tim.peters@gmail.com> |
Now that file objects are subclassable, you can get at the file constructor just by doing type(f) where f is any file object. This left a hole in restricted execution mode that rexec.py can't plug by itself (although it can plug part of it; the rest is plugged in fileobject.c now).
/external/python/cpython2/Lib/rexec.py
|
97dbec97bc18b88e0380f683009f6827f836c630 |
|
13-Aug-2001 |
Guido van Rossum <guido@python.org> |
Remove redundant import (PyChecker). Update greeting message to avoid the long copyright notice.
/external/python/cpython2/Lib/rexec.py
|
56b5fdd295d7e4be64036529cbbb6ffd252ac6bc |
|
07-Aug-2001 |
Fred Drake <fdrake@acm.org> |
Remove make_re() function; this is no longer needed since _sre and pcre are now allowed by ok_builtin_modules. This effectively backs out revision 1.26. This closes SF bug #448546.
/external/python/cpython2/Lib/rexec.py
|
a2d848e99c3369d7a7ca7a429bd7ac258411fb63 |
|
22-Jun-2001 |
Fred Drake <fdrake@acm.org> |
Add sha and _sre to the list of allowed built-in modules.
/external/python/cpython2/Lib/rexec.py
|
183a2f243768ffd15ff4324b317ba880da1094ef |
|
18-Jun-2001 |
Guido van Rossum <guido@python.org> |
Fix SF bug #433904 (Alex Martelli) - all s_* methods return None only.
/external/python/cpython2/Lib/rexec.py
|
0de65807e6bdc5254f5a7e99b2f39adeea6b883b |
|
15-Feb-2001 |
Skip Montanaro <skip@pobox.com> |
bunch more __all__ lists also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
/external/python/cpython2/Lib/rexec.py
|
0c9886d589ddebf32de0ca3f027a173222ed383a |
|
15-Jan-2001 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/rexec.py
|
034c2a9f7ab8c6d1887d258385a13d271bc20d32 |
|
05-Oct-2000 |
Fred Drake <fdrake@acm.org> |
Add support for "import re" -- it uses pre, but user code does not need to.
/external/python/cpython2/Lib/rexec.py
|
f07029e4ba29135368e92a79541ae148d5c7593f |
|
21-Sep-1998 |
Guido van Rossum <guido@python.org> |
Get rid of the classes RModuleLoader and RModuleImporter -- these were only there to override reload() in a way that doesn't make a whole lot of sense and moreover broke since the latest changes in ihooks.
/external/python/cpython2/Lib/rexec.py
|
eeb64287f1e735ead3eced61804cca81452cff79 |
|
09-Jul-1998 |
Guido van Rossum <guido@python.org> |
(1) Added a sys.exc_info() emulation. (It returns None for the traceback.) (2) Made the test script a bit fancier -- you can now use it to run arbitrary scripts in restricted mode, and it will do the right thing. (The interactive mode is still pretty lame; should integrate this with code.interact().)
/external/python/cpython2/Lib/rexec.py
|
8b3282be9f6c747abdf9ae3da5c8590962c7a8e6 |
|
29-Jun-1998 |
Guido van Rossum <guido@python.org> |
For completeness, add a dummy load_package() method to RHooks. It should never be called, so this isn't really needed, but this signifies that rexec now supports packages -- because ihooks does.
/external/python/cpython2/Lib/rexec.py
|
1f40cd6314850c63b68ebd6b2ca46d1c8f7b4124 |
|
09-Jun-1998 |
Guido van Rossum <guido@python.org> |
Add the __doc__ string from the original module on copy_none().
/external/python/cpython2/Lib/rexec.py
|
3ec38f0ee48b31c80510c60b3df0e6bc4dfb89f9 |
|
26-Mar-1998 |
Guido van Rossum <guido@python.org> |
A few lines were indented using tabs instead of spaces -- fix them.
/external/python/cpython2/Lib/rexec.py
|
426916e50e1209d8ecc12678855dc531863a48c5 |
|
22-Oct-1997 |
Guido van Rossum <guido@python.org> |
Add pcre to the list of safe modules.
/external/python/cpython2/Lib/rexec.py
|
faeae5cd784b4832aa93d4da535326f87c67b4a5 |
|
25-Apr-1997 |
Guido van Rossum <guido@python.org> |
Alas, I have to restore 'marshal', since it is needed by the new cPickle-compatible pickle, and pickle must be importable in restricted mode. I guess I'll have to make marshal safe.
/external/python/cpython2/Lib/rexec.py
|
3ee6b195bbe8272b5901f3f97c0966ddd4bb72fa |
|
21-Mar-1997 |
Guido van Rossum <guido@python.org> |
Removed 'marshal' from the list of "ok" built-in functions -- the unmarshalling code is actually rather naive and can easily be caused to crash by feeding it invalid data. This should be fixed in the marshal module, but I don't have the time to fix it now :-(
/external/python/cpython2/Lib/rexec.py
|
32616fbee67d00e12d5ede7a9e762e6635eb45fe |
|
12-Dec-1996 |
Guido van Rossum <guido@python.org> |
Make sure ok_builtin_modules, ok_dynamic_modules and builtin_module_names are always tuples.
/external/python/cpython2/Lib/rexec.py
|
fe779a1dc8065dc175cb4ff454ed6d3a1944adf0 |
|
02-Oct-1996 |
Guido van Rossum <guido@python.org> |
Don't mix stdout/stderr.
/external/python/cpython2/Lib/rexec.py
|
dfd9cb1e121ea74aefea81ac18ed4fe09d1243df |
|
30-Sep-1996 |
Guido van Rossum <guido@python.org> |
Don't die if an ok file method (e.g. fileno) doesn't exist.
/external/python/cpython2/Lib/rexec.py
|
e7b9fde1b8461b389f2bcc21350eb132a287f14b |
|
25-Sep-1996 |
Guido van Rossum <guido@python.org> |
1. Correct typo in FileWrapper.close() (fix by AMK). 2. New trusted built-in modules cmath, errno, operator, parser. 3. Corrected bogus s_apply() -- the new one actually works (reported by AMK).
/external/python/cpython2/Lib/rexec.py
|
63f0cf084077bdfe165a899175deca24a0f783e5 |
|
20-Aug-1996 |
Guido van Rossum <guido@python.org> |
delattr() can raise AttributeError, not KeyError. Use keyword arg to set verbose flag in test func.
/external/python/cpython2/Lib/rexec.py
|
cd6aab91a5fb9607ba8b731f906c5738a2409384 |
|
28-Jun-1996 |
Guido van Rossum <guido@python.org> |
Fixed restore_files(); added reset_files(); made these more flexible.
/external/python/cpython2/Lib/rexec.py
|
3ada87a5088d095dc72250a7eb95f21dcd85809d |
|
29-May-1996 |
Guido van Rossum <guido@python.org> |
fix typo in load_dynamic
/external/python/cpython2/Lib/rexec.py
|
fdd45cb8580f06031528ff370e0f6d5322bfe67d |
|
29-May-1996 |
Guido van Rossum <guido@python.org> |
Fix some obsolete names comments. Change RHooks() interface to not require a 'rexec' instance argument; added set_rexec() method instead (which must be called by the RExec instance using this RHooks instance). Support dynamic loading of modules, at least for those modules that are ok built-in modules. Added new interfaces set_trusted_path() and load_dynamic() to RExec class (the default trusted path consists of all absolute pathnames in sys.path). Change copy_except() to actually try to delete the exceptions.
/external/python/cpython2/Lib/rexec.py
|
1035a892a140a7dc7b59f016230db02b490885d0 |
|
11-Aug-1995 |
Guido van Rossum <guido@python.org> |
make sure the path ends in a slash in reload()
/external/python/cpython2/Lib/rexec.py
|
18596003572b715d57ecb6d357cebc4257c0bb31 |
|
10-Aug-1995 |
Guido van Rossum <guido@python.org> |
fix reload use of __filename__
/external/python/cpython2/Lib/rexec.py
|
bebe5157a5bccfbf8a99e5e207c037ad9cbb608c |
|
09-Aug-1995 |
Guido van Rossum <guido@python.org> |
add module binascii; add r_unload/s_unload; don't change 'rb' to 'r' in open
/external/python/cpython2/Lib/rexec.py
|
13833560390fec8ae5a09b634c6ea9fb5b4ffc51 |
|
07-Aug-1995 |
Guido van Rossum <guido@python.org> |
added sys.std files, read-only open, reload
/external/python/cpython2/Lib/rexec.py
|
40d1ea3b9ccf9e779f253685d1f5f6cf530945fa |
|
04-Aug-1995 |
Guido van Rossum <guido@python.org> |
new package support, import hooks, restricted execution support
/external/python/cpython2/Lib/rexec.py
|
b47281539afdcd4b38a59ff4c5f80897ceb1fd02 |
|
22-Jun-1995 |
Guido van Rossum <guido@python.org> |
use imp.new_module(), not new.module(); and /usr/local
/external/python/cpython2/Lib/rexec.py
|
b5f9460556d98363674fb84b944637f5be29d901 |
|
02-Mar-1995 |
Guido van Rossum <guido@python.org> |
allow safe_import to be called with up to 4 args and check for . in name
/external/python/cpython2/Lib/rexec.py
|
8e8a525f229ef6a9e1b881e9b71eda72dabd5007 |
|
17-Jan-1995 |
Guido van Rossum <guido@python.org> |
evolution
/external/python/cpython2/Lib/rexec.py
|
9a22de101fd66c6e0d1a6dda515a7b31d8c9c9aa |
|
12-Jan-1995 |
Guido van Rossum <guido@python.org> |
new files
/external/python/cpython2/Lib/rexec.py
|