[Zope-Checkins] CVS: Zope/lib/python/RestrictedPython - RCompile.py:1.1.2.2
Shane Hathaway
shane@digicool.com
Wed, 19 Dec 2001 17:44:29 -0500
Update of /cvs-repository/Zope/lib/python/RestrictedPython
In directory cvs.zope.org:/tmp/cvs-serv28972
Modified Files:
Tag: RestrictedPython-2_2-branch
RCompile.py
Log Message:
Fixed typos
=== Zope/lib/python/RestrictedPython/RCompile.py 1.1.2.1 => 1.1.2.2 ===
#
##############################################################################
-"""Compiles restricted code using the built-in compiler module.
+"""Compiles restricted code using the compiler module from the
+Python standard library.
"""
__version__='$Revision$'[11:-2]
@@ -106,8 +107,8 @@
try:
gen.compile()
except SyntaxError, v:
- return None, (str(v),), gen.rm.warnings, gen.rm.use_names
- return gen.getCode(), (), gen.rm.warnings, gen.rm.use_names
+ return None, (str(v),), gen.rm.warnings, gen.rm.used_names
+ return gen.getCode(), (), gen.rm.warnings, gen.rm.used_names
def compile_restricted_function(p, body, name, filename):
"""Compiles a restricted code object for a function.