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:
parent
a53b5d7304
commit
6960f85b8f
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue