Show More
@@ -75,7 +75,9 b' def gettext(message):' | |||||
75 | # goofy unicode docstrings in test |
|
75 | # goofy unicode docstrings in test | |
76 | paragraphs = message.split(u'\n\n') |
|
76 | paragraphs = message.split(u'\n\n') | |
77 | else: |
|
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 | # Be careful not to translate the empty string -- it holds the |
|
81 | # Be careful not to translate the empty string -- it holds the | |
80 | # meta data of the .po file. |
|
82 | # meta data of the .po file. | |
81 | u = u'\n\n'.join([p and _ugettext(p) or u'' for p in paragraphs]) |
|
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