Tools: fix Python warning in size_compare_branches.py

This commit is contained in:
Peter Barker 2022-11-02 14:09:30 +11:00 committed by Peter Barker
parent e28e528a97
commit b29a1f4291

View File

@ -66,9 +66,13 @@ class SizeCompareBranches(object):
def run_program(self, prefix, cmd_list, show_output=True, env=None):
if show_output:
self.progress("Running (%s)" % " ".join(cmd_list))
p = subprocess.Popen(cmd_list, bufsize=1, stdin=None,
stdout=subprocess.PIPE, close_fds=True,
stderr=subprocess.STDOUT, env=env)
p = subprocess.Popen(
cmd_list,
stdin=None,
stdout=subprocess.PIPE,
close_fds=True,
stderr=subprocess.STDOUT,
env=env)
output = ""
while True:
x = p.stdout.readline()