automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: py-compile: fix display when co


From: Mike Frysinger
Subject: [automake-commit] branch master updated: py-compile: fix display when compiling multiple files
Date: Mon, 07 Feb 2022 22:37:48 -0500

This is an automated email from the git hooks/post-receive script.

vapier pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=5b99315ce84e59c5b14ed311226348ed8942de25

The following commit(s) were added to refs/heads/master by this push:
     new 5b99315ce py-compile: fix display when compiling multiple files
5b99315ce is described below

commit 5b99315ce84e59c5b14ed311226348ed8942de25
Author: Mike Frysinger <vapier@gentoo.org>
AuthorDate: Sun Feb 6 01:24:52 2022 -0500

    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.
---
 lib/py-compile | 6 +++---
 1 file 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]