diff options
author | Jiri Tyr <jiri.tyr@gmail.com> | 2020-02-06 16:32:46 +0000 |
---|---|---|
committer | Jiri Tyr <jiri.tyr@gmail.com> | 2020-02-10 10:52:27 +0000 |
commit | 83a3227b62c936b346b825b333fc2ca65528ecfd (patch) | |
tree | 6c08e98fb9910d965ee8ef4c224d07aca87b389e /subcmds/forall.py | |
parent | 09dd9bda38bd0bcf62ce882f2f80e6dcdcc91e64 (diff) | |
download | git-repo-83a3227b62c936b346b825b333fc2ca65528ecfd.tar.gz |
Fixing forall subcommand for Py3v2.0
Execution of 'repo forall -p -c' doesn't work with Py3 and ends up
with an error:
Got an error, terminating the pool: TypeError: can only concatenate
str (not "bytes") to str
That's fixed by using the decode() method.
Change-Id: Ice01aaa1822dde8d957b5bf096021dd5a2b7dd51
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/253659
Reviewed-by: Mike Frysinger <vapier@google.com>
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Jiri Tyr <jiri.tyr@gmail.com>
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r-- | subcmds/forall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index 96eac541..131ba676 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
@@ -366,7 +366,7 @@ def DoWork(project, mirror, opt, cmd, shell, cnt, config): | |||
366 | while not s_in.is_done: | 366 | while not s_in.is_done: |
367 | in_ready = s_in.select() | 367 | in_ready = s_in.select() |
368 | for s in in_ready: | 368 | for s in in_ready: |
369 | buf = s.read() | 369 | buf = s.read().decode() |
370 | if not buf: | 370 | if not buf: |
371 | s.close() | 371 | s.close() |
372 | s_in.remove(s) | 372 | s_in.remove(s) |