diff options
| author | 2014-10-21 10:33:17 -0300 | |
|---|---|---|
| committer | 2014-10-21 10:33:17 -0300 | |
| commit | 2d14c4b384c7000e264674a92b16e010a510ac05 (patch) | |
| tree | 7676db09f338e46e053170b1c9f7594120b9d434 /scripts/import_po.py | |
| parent | 2d2e97ac540c94e15ac5eccc7d32f3dfb3eea1bc (diff) | |
| parent | 5ec02211214350ee558fd9f6bb052264fd24f75e (diff) | |
Merge tag 'upstream/7.1.0'
Upstream version 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)) |
