added blank lines

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2020 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-09-09 19:47:25 +00:00
parent a53b5d7304
commit 6960f85b8f

View file

@ -38,7 +38,9 @@ import RestrictedPython.RCompile
from RestrictedPython.SelectCompiler import ast
from zope.security.untrustedpython.rcompile import RestrictionMutator as BaseRM
unrestricted_objects = ('rpy', 'r')
unrestricted_objects = ('rpy', 'r', 'as_py')
def compile(text, filename, mode):
if not isinstance(text, basestring):
@ -47,6 +49,7 @@ def compile(text, filename, mode):
gen.compile()
return gen.getCode()
class RExpression(RestrictedPython.RCompile.RestrictedCompileMode):
CodeGeneratorClass = compiler.pycodegen.ExpressionCodeGenerator