diff options
| author | 2014-10-21 10:33:15 -0300 | |
|---|---|---|
| committer | 2014-10-21 10:33:15 -0300 | |
| commit | 5ec02211214350ee558fd9f6bb052264fd24f75e (patch) | |
| tree | b61e8c61a95d18a91d053e71dcbd7b30e47552a1 /scripts/import_po.py | |
| parent | 58c4878526dec5510f23c812274686787d8724ba (diff) | |
Imported Upstream version 7.1.0upstream/7.1.0
Diffstat (limited to 'scripts/import_po.py')
| -rwxr-xr-x | scripts/import_po.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/import_po.py b/scripts/import_po.py index 50afab9..0429b42 100755 --- a/scripts/import_po.py +++ b/scripts/import_po.py @@ -3,7 +3,7 @@ """Download translations from transifex and regenerate files.""" from __future__ import unicode_literals, print_function -import codecs +import io from glob import glob import os import sys @@ -28,5 +28,5 @@ MESSAGES = {""".splitlines() lines.extend(sorted(lines2)) lines.append("}\n") print("Generating:", outf) - with codecs.open(outf, "wb+", "utf8") as outfile: + with io.open(outf, "w+", encoding="utf8") as outfile: outfile.write('\n'.join(lines)) |
