diff options
| author | 2015-07-08 07:35:02 -0300 | |
|---|---|---|
| committer | 2015-07-08 07:35:02 -0300 | |
| commit | b0b24795b24ee6809397fbbadf42f31f310a219f (patch) | |
| tree | 46d05bb47460b4ec679211717c4ab07414b80d9c /dodo.py | |
| parent | 5ec02211214350ee558fd9f6bb052264fd24f75e (diff) | |
Imported Upstream version 7.6.0upstream/7.6.0
Diffstat (limited to 'dodo.py')
| -rw-r--r-- | dodo.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
