summaryrefslogtreecommitdiffstats
path: root/generate_pot.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2015-08-25 13:20:14 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2015-08-25 15:43:55 +0100
commit7d679eb4800df015c89ec9e4e7f82b815a051162 (patch)
tree4421b47d74c3c91bf338c2e997f40d0bfaae7df3 /generate_pot.py
parent23cbd581dbb79d0b319052f62995b8152cc79a0a (diff)
downloaddeluge-7d679eb4800df015c89ec9e4e7f82b815a051162.tar.gz
deluge-7d679eb4800df015c89ec9e4e7f82b815a051162.tar.bz2
deluge-7d679eb4800df015c89ec9e4e7f82b815a051162.zip
Updates to helper scripts
* Python 3 compatible * Consistent quote symbol
Diffstat (limited to 'generate_pot.py')
-rwxr-xr-xgenerate_pot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/generate_pot.py b/generate_pot.py
index 245ea60ab..51660f56a 100755
--- a/generate_pot.py
+++ b/generate_pot.py
@@ -58,7 +58,7 @@ for (dirpath, dirnames, filenames) in os.walk("deluge"):
call(["intltool-extract", "--quiet", "--type=gettext/glade", filepath])
to_translate.append(filepath + ".h")
-with open(INFILES_LIST, "wb") as f:
+with open(INFILES_LIST, "w") as f:
for line in to_translate:
f.write(line + "\n")
@@ -78,7 +78,7 @@ for (dirpath, dirnames, filenames) in os.walk(WEBUI_RENDER_DIR):
if os.path.splitext(filename)[1] == ".html":
js_to_translate.append(os.path.join(dirpath, filename))
-with open(INFILES_LIST, "wb") as f:
+with open(INFILES_LIST, "w") as f:
for line in js_to_translate:
f.write(line + "\n")
@@ -107,4 +107,4 @@ for filepath in to_translate:
# Update web js gettext
create_gettext_js(WEBUI_JS_DIR)
-print "Created %s and updated gettext.js" % POT_FILEPATH
+print("Created %s and updated gettext.js" % POT_FILEPATH)