[Checkins] SVN: RestrictedPython/trunk/ Dropped legacy support for Python 2.1 / 2.2 (``__future__`` imports of
Tres Seaver
tseaver at palladion.com
Mon Feb 9 13:25:52 EST 2009
Log message for revision 96327:
Dropped legacy support for Python 2.1 / 2.2 (``__future__`` imports of
``nested_scopes`` / ``generators``.).
Changed:
U RestrictedPython/trunk/CHANGES.txt
U RestrictedPython/trunk/src/RestrictedPython/tests/restricted_module.py
U RestrictedPython/trunk/src/RestrictedPython/tests/security_in_syntax.py
U RestrictedPython/trunk/src/RestrictedPython/tests/testRestrictions.py
-=-
Modified: RestrictedPython/trunk/CHANGES.txt
===================================================================
--- RestrictedPython/trunk/CHANGES.txt 2009-02-09 18:10:35 UTC (rev 96326)
+++ RestrictedPython/trunk/CHANGES.txt 2009-02-09 18:25:52 UTC (rev 96327)
@@ -1,9 +1,11 @@
Changes
=======
-3.4.4 (Unreleased)
-------------------
+After 3.4.3
+-----------
+- Dropped legacy support for Python 2.1 / 2.2 (``__future__`` imports
+ of ``nested_scopes`` / ``generators``.).
3.4.3 (2008-10-26)
------------------
Modified: RestrictedPython/trunk/src/RestrictedPython/tests/restricted_module.py
===================================================================
--- RestrictedPython/trunk/src/RestrictedPython/tests/restricted_module.py 2009-02-09 18:10:35 UTC (rev 96326)
+++ RestrictedPython/trunk/src/RestrictedPython/tests/restricted_module.py 2009-02-09 18:25:52 UTC (rev 96327)
@@ -1,4 +1,3 @@
-from __future__ import nested_scopes
import sys
def print0():
Modified: RestrictedPython/trunk/src/RestrictedPython/tests/security_in_syntax.py
===================================================================
--- RestrictedPython/trunk/src/RestrictedPython/tests/security_in_syntax.py 2009-02-09 18:10:35 UTC (rev 96326)
+++ RestrictedPython/trunk/src/RestrictedPython/tests/security_in_syntax.py 2009-02-09 18:25:52 UTC (rev 96327)
@@ -2,8 +2,6 @@
# compile_restricted() but not when using compile().
# Each function in this module is compiled using compile_restricted().
-from __future__ import generators
-
def overrideGuardWithFunction():
def _getattr(o): return o
Modified: RestrictedPython/trunk/src/RestrictedPython/tests/testRestrictions.py
===================================================================
--- RestrictedPython/trunk/src/RestrictedPython/tests/testRestrictions.py 2009-02-09 18:10:35 UTC (rev 96326)
+++ RestrictedPython/trunk/src/RestrictedPython/tests/testRestrictions.py 2009-02-09 18:25:52 UTC (rev 96327)
@@ -292,7 +292,6 @@
for k, v in m.items():
if hasattr(v, 'func_code'):
filename, source = find_source(fn, v.func_code)
- source = "from __future__ import generators\n\n" + source
# Now compile it with restrictions
try:
code = compile_restricted(source, filename, 'exec')
More information about the Checkins
mailing list