[jhbuild/more-py3-fixes: 3/3] cmds: fix a str to bytes comparison
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/more-py3-fixes: 3/3] cmds: fix a str to bytes comparison
- Date: Tue, 24 Sep 2019 17:12:09 +0000 (UTC)
commit a6764bb62e331b1983d564551ea6102d2a0a0fd3
Author: Christoph Reiter <reiter christoph gmail com>
Date: Tue Sep 24 19:09:19 2019 +0200
cmds: fix a str to bytes comparison
This is always false with Python3. This resulted in builds getting
stuck and the interpreter using 100% CPU.
jhbuild/utils/cmds.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/jhbuild/utils/cmds.py b/jhbuild/utils/cmds.py
index 1d9b17a5..52fd2986 100644
--- a/jhbuild/utils/cmds.py
+++ b/jhbuild/utils/cmds.py
@@ -197,7 +197,7 @@ def pprint_output(pipe, format_line):
if pipe.stderr in rlist:
err_chunk = os.read(pipe.stderr.fileno(), 10000)
- if err_chunk == '':
+ if err_chunk == b'':
pipe.stderr.close()
read_set.remove(pipe.stderr)
err_data += err_chunk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]