Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
d-maurer committed Jul 23, 2020
2 parents 288da20 + 5cb62f0 commit 9c76f40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Products/PageTemplates/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
from .interfaces import IZopeAwareEngine


if six.PY3:
unicode = str


class _PseudoContext(object):
"""auxiliary context object.
Expand Down Expand Up @@ -253,7 +257,7 @@ def __init__(self, type, expression, zt_engine):
# (details "https://github.com/zopefoundation/Zope/issues/876")
# To avoid this, call ``_compile_zt_expr`` with
# *expression* cast to the `Token` base type.
expr = str(expression) if six.PY3 else unicode(expression)
expr = unicode(expression)
self.expression = expression
# compile to be able to report errors
compiler_error = zt_engine.getCompilerError()
Expand Down

0 comments on commit 9c76f40

Please sign in to comment.