[Zope-Checkins] CVS: Zope/lib/python/RestrictedPython -
SelectCompiler.py:1.4.68.1 RCompile_2_1.py:NONE
Shane Hathaway
cvs-admin at zope.org
Thu Nov 6 12:02:54 EST 2003
Update of /cvs-repository/Zope/lib/python/RestrictedPython
In directory cvs.zope.org:/tmp/cvs-serv14422
Modified Files:
Tag: Zope-2_7-branch
SelectCompiler.py
Removed Files:
Tag: Zope-2_7-branch
RCompile_2_1.py
Log Message:
Removed support for Python 2.1.
=== Zope/lib/python/RestrictedPython/SelectCompiler.py 1.4 => 1.4.68.1 ===
--- Zope/lib/python/RestrictedPython/SelectCompiler.py:1.4 Wed Aug 14 17:44:31 2002
+++ Zope/lib/python/RestrictedPython/SelectCompiler.py Thu Nov 6 12:02:22 2003
@@ -17,26 +17,14 @@
import sys
-if sys.version_info[1] < 2:
- # Use the compiler_2_1 package.
- from compiler_2_1 import ast
- from compiler_2_1.transformer import parse
- from compiler_2_1.consts import OP_ASSIGN, OP_DELETE, OP_APPLY
+# Use the compiler from the standard library.
+import compiler
+from compiler import ast
+from compiler.transformer import parse
+from compiler.consts import OP_ASSIGN, OP_DELETE, OP_APPLY
- from RCompile_2_1 import \
- compile_restricted, \
- compile_restricted_function, \
- compile_restricted_exec, \
- compile_restricted_eval
-else:
- # Use the compiler from the standard library.
- import compiler
- from compiler import ast
- from compiler.transformer import parse
- from compiler.consts import OP_ASSIGN, OP_DELETE, OP_APPLY
-
- from RCompile import \
- compile_restricted, \
- compile_restricted_function, \
- compile_restricted_exec, \
- compile_restricted_eval
+from RCompile import \
+ compile_restricted, \
+ compile_restricted_function, \
+ compile_restricted_exec, \
+ compile_restricted_eval
=== Removed File Zope/lib/python/RestrictedPython/RCompile_2_1.py ===
More information about the Zope-Checkins
mailing list