summaryrefslogtreecommitdiff
path: root/src/zope/tales/pythonexpr.py
diff options
context:
space:
mode:
authorStephan Richter <stephan.richter@gmail.com>2013-02-15 01:31:14 +0000
committerStephan Richter <stephan.richter@gmail.com>2013-02-15 01:31:14 +0000
commitc9358500c4e4a07a87a80f15c28c3d31e345041c (patch)
tree8861a2314dab4e39916a2730b1f0e0294a0c1506 /src/zope/tales/pythonexpr.py
parent64b4e05f8046e38f8985fc99db84522fff2c6482 (diff)
downloadzope-tales-c9358500c4e4a07a87a80f15c28c3d31e345041c.tar.gz
Python 3.3 and PyPY support.
Diffstat (limited to 'src/zope/tales/pythonexpr.py')
-rw-r--r--src/zope/tales/pythonexpr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/tales/pythonexpr.py b/src/zope/tales/pythonexpr.py
index 5e86bbb..ffa5c84 100644
--- a/src/zope/tales/pythonexpr.py
+++ b/src/zope/tales/pythonexpr.py
@@ -21,7 +21,7 @@ class PythonExpr(object):
self.text = text
try:
code = self._compile(text, '<string>')
- except SyntaxError, e:
+ except SyntaxError as e:
raise engine.getCompilerError()(str(e))
self._code = code
self._varnames = code.co_names