summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2013-02-07 23:04:58 +0000
committerMarius Gedminas <marius@gedmin.as>2013-02-07 23:04:58 +0000
commitc0ed4d5510cb9bd7f4df104293d0d74e5e5f72b9 (patch)
tree2abec4e0d805a74963d7e55d42dfa76a73220a69 /src
parentcec5452b6cb93ed0d0139be1d01aa660e14b3bbb (diff)
downloadzope-tal-c0ed4d5510cb9bd7f4df104293d0d74e5e5f72b9.tar.gz
Towards Py3K: builtins (part 2)
Diffstat (limited to 'src')
-rw-r--r--src/zope/tal/dummyengine.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/zope/tal/dummyengine.py b/src/zope/tal/dummyengine.py
index 6cb4ac3..2987c2d 100644
--- a/src/zope/tal/dummyengine.py
+++ b/src/zope/tal/dummyengine.py
@@ -27,6 +27,13 @@ from zope.tal.taldefs import NAME_RE, TALExpressionError, ErrorInfo
from zope.tal.interfaces import ITALExpressionCompiler, ITALExpressionEngine
from zope.i18nmessageid import Message
+
+try:
+ unicode
+except NameError:
+ unicode = str # Python 3.x
+
+
Default = object()
name_match = re.compile(r"(?s)(%s):(.*)\Z" % NAME_RE).match