Commit da09e041 authored by Andreas Jung's avatar Andreas Jung

Collector #2289: restored compatibility with PTProfiler

parent 56692de5
...@@ -28,7 +28,7 @@ class PythonExpr(PythonExpr): ...@@ -28,7 +28,7 @@ class PythonExpr(PythonExpr):
_globals['__debug__' ] = __debug__ _globals['__debug__' ] = __debug__
def __init__(self, name, expr, engine): def __init__(self, name, expr, engine):
self.text = text = expr.strip().replace('\n', ' ') self.text = self.expr = text = expr.strip().replace('\n', ' ')
# Unicode expression are not handled properly by RestrictedPython # Unicode expression are not handled properly by RestrictedPython
# We convert the expression to UTF-8 (ajung) # We convert the expression to UTF-8 (ajung)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment