comment cleanup

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2019-09-17 23:13:55 -05:00
parent aa31e6baf6
commit 658df9e905
No known key found for this signature in database
GPG Key ID: 2193804FCA429855
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ def build(docker_repo, arch, args):
print(build_command, '\n')
build_result = subprocess.Popen(build_command.split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
if args['-v']:
for c in iter(lambda: build_result.stdout.read(1), b''): # replace '' with b'' for Python 3
for c in iter(lambda: build_result.stdout.read(1), b''):
sys.stdout.write(c)
if build_result.returncode != 0:
print(" ::: Building {} encountered an error".format(dockerfile))