From 061cd7fd9ca002c8935dbb6cd5b19c2725c3f1f5 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Fri, 17 Aug 2018 22:28:03 +0200 Subject: [PATCH] Fix bug #11247 async is a reserved keyword in python 3.7 --- lib/configure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/configure.py b/lib/configure.py index 72b18f86a3..1a4ef559bb 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -69,10 +69,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) ''' @@ -87,7 +87,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() -- 2.39.5