##// END OF EJS Templates
py3: get around unicode docstrings in test-encoding-textwrap.t and test-help.t...
Yuya Nishihara -
r40290:dd83aafd default
parent child Browse files
Show More
@@ -75,7 +75,9 b' def gettext(message):'
75 75 # goofy unicode docstrings in test
76 76 paragraphs = message.split(u'\n\n')
77 77 else:
78 paragraphs = [p.decode("ascii") for p in message.split('\n\n')]
78 # should be ascii, but we have unicode docstrings in test, which
79 # are converted to utf-8 bytes on Python 3.
80 paragraphs = [p.decode("utf-8") for p in message.split('\n\n')]
79 81 # Be careful not to translate the empty string -- it holds the
80 82 # meta data of the .po file.
81 83 u = u'\n\n'.join([p and _ugettext(p) or u'' for p in paragraphs])
General Comments 0
You need to be logged in to leave comments. Login now