From: Mike Frysinger Date: Sun, 6 Feb 2022 06:24:52 +0000 (-0500) Subject: py-compile: fix display when compiling multiple files X-Git-Tag: v1.16i~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b99315ce84e59c5b14ed311226348ed8942de25;p=thirdparty%2Fautomake.git py-compile: fix display when compiling multiple files The compilation steps print the filename as it runs, but forgets to add a space after it, so they all get squashed together: $ ./py-compile 1.py 2.py 3.py Byte-compiling python modules... 1.py2.py.3.py * lib/py-compile: Add missing write. --- diff --git a/lib/py-compile b/lib/py-compile index 734bd6a3c..6295b2dac 100755 --- a/lib/py-compile +++ b/lib/py-compile @@ -1,7 +1,7 @@ #!/bin/sh # py-compile - Compile a Python program -scriptversion=2022-02-06.06; # UTC +scriptversion=2022-02-06.07; # UTC # Copyright (C) 2000-2022 Free Software Foundation, Inc. @@ -141,7 +141,7 @@ for file in sys.argv[1:]: if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'): continue - sys.stdout.write(file) + sys.stdout.write(file + ' ') sys.stdout.flush() if hasattr(sys.implementation, 'cache_tag'): py_compile.compile(filepath, importlib.util.cache_from_source(filepath), path) @@ -163,7 +163,7 @@ for file in sys.argv[1:]: if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'): continue - sys.stdout.write(file) + sys.stdout.write(file + ' ') sys.stdout.flush() if hasattr(sys.implementation, 'cache_tag'): py_compile.compile(filepath, importlib.util.cache_from_source(filepath), path)