Commit a9c80461 authored by Andreas Jung's avatar Andreas Jung

Collector #2289: restored compatibility with PTProfiler

parent 355ac9d8
...@@ -8,6 +8,8 @@ Zope Changes ...@@ -8,6 +8,8 @@ Zope Changes
Bugs fixed Bugs fixed
- Collector #2289: restored compatibility with PTProfiler
- No longer opens a zodb connection every time a ProductDispatcher - No longer opens a zodb connection every time a ProductDispatcher
is looked up. is looked up.
......
...@@ -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