From b0b24795b24ee6809397fbbadf42f31f310a219f Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Wed, 8 Jul 2015 07:35:02 -0300 Subject: Imported Upstream version 7.6.0 --- dodo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dodo.py') 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) -- cgit v1.2.3