]> git.lyx.org Git - features.git/commitdiff
Fix bug #11247
authorEnrico Forestieri <forenr@lyx.org>
Fri, 17 Aug 2018 20:28:03 +0000 (22:28 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 19 Aug 2018 14:35:20 +0000 (16:35 +0200)
async is a reserved keyword in python 3.7

(cherry picked from commit 061cd7fd9ca002c8935dbb6cd5b19c2725c3f1f5)

lib/configure.py
status.23x

index 7bfac3d135b03c72d4b68d0a50372ae26f3b33f7..f0efb0fe668d1cccbee5ccbcc9251730ad41777f 100644 (file)
@@ -64,10 +64,10 @@ def removeFiles(filenames):
             pass
 
 
-def cmdOutput(cmd, async = False):
+def cmdOutput(cmd, asynchronous = False):
     '''utility function: run a command and get its output as a string
         cmd: command to run
-        async: if False, return whole output as a string, otherwise
+        asynchronous: if False, return whole output as a string, otherwise
                return the stdout handle from which the output can be
                read (the caller is then responsible for closing it)
     '''
@@ -82,7 +82,7 @@ def cmdOutput(cmd, async = False):
     pipe = subprocess.Popen(cmd, shell=b, close_fds=b, stdin=subprocess.PIPE,
                             stdout=subprocess.PIPE, universal_newlines=True)
     pipe.stdin.close()
-    if async:
+    if asynchronous:
         return pipe.stdout
     output = pipe.stdout.read()
     pipe.stdout.close()
index 7241291732162dcb7fbd5b490d17a0631950b7cf..e7b3b20dc24c96f7537b9a219ac957389d95815d 100644 (file)
@@ -301,6 +301,8 @@ What's new
 
 - Fix the LyX server on Windows so that replies are actually output.
 
+- Fix the configure.py script for python 3.7.
+
 
 * DOCUMENTATION AND LOCALIZATION