Skip to content

Commit

Permalink
Fix unicode issue, reported in collective/i18ndude#48
Browse files Browse the repository at this point in the history
  • Loading branch information
gyst committed Mar 2, 2018
1 parent 0b583d1 commit 70a610e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/zope/tal/talgettext.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
from zope.tal.taldefs import TALExpressionError
from zope.i18nmessageid import Message

PY3 = sys.version_info > (3,)
if PY3:
unicode = str

pot_header = '''\
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
Expand All @@ -64,6 +68,7 @@

NLSTR = '"\n"'


def usage(code, msg=''):
# Python 2.1 required
print(__doc__, file=sys.stderr)
Expand Down

0 comments on commit 70a610e

Please sign in to comment.