summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-02-06 01:24:52 -0500
committerMike Frysinger <vapier@gentoo.org>2022-02-06 01:24:52 -0500
commit5b99315ce84e59c5b14ed311226348ed8942de25 (patch)
tree22653ae237aa90905d5197de13a2f57892a42b30
parent8ff90705a79c4728fa887601f4818a244a32e1c6 (diff)
downloadautomake-5b99315ce84e59c5b14ed311226348ed8942de25.tar.gz
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.
-rwxr-xr-xlib/py-compile6
1 files changed, 3 insertions, 3 deletions
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)