mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix bug #11247
async is a reserved keyword in python 3.7
(cherry picked from commit 061cd7fd9c
)
This commit is contained in:
parent
0c306236d3
commit
103d6c6362
@ -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()
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user