summaryrefslogtreecommitdiff
path: root/src/zope/tal/talinterpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/tal/talinterpreter.py')
-rw-r--r--src/zope/tal/talinterpreter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zope/tal/talinterpreter.py b/src/zope/tal/talinterpreter.py
index 6b6034b..c2ad97b 100644
--- a/src/zope/tal/talinterpreter.py
+++ b/src/zope/tal/talinterpreter.py
@@ -26,8 +26,10 @@ from zope.tal.translationcontext import TranslationContext
try:
unicode
+ _BLANK = unicode('')
except NameError:
unicode = str # Python 3.x
+ _BLANK = ''
# Avoid constructing this tuple over and over
@@ -1025,7 +1027,7 @@ class FasterStringIO(list):
self.append(value)
def getvalue(self):
- return u''.join(self)
+ return _BLANK.join(self)
def _write_ValueError(s):