From 8c2696b78c1bf38e40ea2ed22d895096e464d1ad Mon Sep 17 00:00:00 2001 From: Guido Serra Date: Mon, 9 Sep 2019 11:32:51 +0200 Subject: [PATCH] otherwise setup.py build wont work --- .gitignore | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8b8cc9a..ac86dba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.git wicd.egg-info/ *.bak **/*.pyc diff --git a/setup.py b/setup.py index 87fb908..3489d31 100755 --- a/setup.py +++ b/setup.py @@ -631,7 +631,7 @@ class compile_translations(Command): msgfmt = subprocess.Popen(['msgfmt', '--statistics', pofile, '-o', '/dev/null'], stderr=subprocess.PIPE) returncode = msgfmt.wait() # let it finish, and get the exit code - output = msgfmt.stderr.readline().strip() + output = msgfmt.stderr.readline().strip().decode('utf-8') if len(output) == 0 or returncode != 0: print(len(output), returncode) raise ValueError