changeset 29742 | 4d23cd6e2219 |
parent 29638 | 491ee264b9f6 |
child 29787 | 279cd80059d4 |
--- a/mercurial/util.py Fri Aug 05 14:00:39 2016 -0400 +++ b/mercurial/util.py Fri Aug 05 14:00:46 2016 -0400 @@ -1012,10 +1012,7 @@ proc = subprocess.Popen(cmd, shell=True, close_fds=closefds, env=env, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - while True: - line = proc.stdout.readline() - if not line: - break + for line in iter(proc.stdout.readline, ''): out.write(line) proc.wait() rc = proc.returncode