summaryrefslogtreecommitdiffstats
path: root/dodo.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2015-07-08 07:35:02 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2015-07-08 07:35:02 -0300
commitb0b24795b24ee6809397fbbadf42f31f310a219f (patch)
tree46d05bb47460b4ec679211717c4ab07414b80d9c /dodo.py
parent5ec02211214350ee558fd9f6bb052264fd24f75e (diff)
Imported Upstream version 7.6.0upstream/7.6.0
Diffstat (limited to 'dodo.py')
-rw-r--r--dodo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dodo.py b/dodo.py
index 66163f2..3d5d070 100644
--- a/dodo.py
+++ b/dodo.py
@@ -30,6 +30,7 @@ def task_locale():
def set_nikola_test_locales():
try:
out = subprocess.check_output(['locale', '-a'])
+ out = out.decode('utf-8')
locales = []
languages = set()
for line in out.splitlines():
@@ -37,7 +38,7 @@ def task_locale():
lang = line.split('_')[0]
if lang not in languages:
try:
- locale.setlocale(locale.LC_ALL, line)
+ locale.setlocale(locale.LC_ALL, str(line))
except:
continue
languages.add(lang)