summaryrefslogtreecommitdiffstats
path: root/Utils.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-14 11:01:21 +0200
committerDavid Robillard <d@drobilla.net>2019-10-14 11:01:21 +0200
commitfa87543e7d6bb243ff068c64069fc43342041073 (patch)
tree92284f108be4868e5aa849da21519e326c81c5a0 /Utils.py
parent2f22513494d9c5092254c428eb487510d81a7857 (diff)
downloadautowaf-fa87543e7d6bb243ff068c64069fc43342041073.tar.gz
autowaf-fa87543e7d6bb243ff068c64069fc43342041073.tar.bz2
autowaf-fa87543e7d6bb243ff068c64069fc43342041073.zip
Upgrade to waf 2.0.18
Diffstat (limited to 'Utils.py')
-rw-r--r--Utils.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Utils.py b/Utils.py
index 4b808a8..7472226 100644
--- a/Utils.py
+++ b/Utils.py
@@ -604,6 +604,12 @@ def h_list(lst):
"""
return md5(repr(lst).encode()).digest()
+if sys.hexversion < 0x3000000:
+ def h_list_python2(lst):
+ return md5(repr(lst)).digest()
+ h_list_python2.__doc__ = h_list.__doc__
+ h_list = h_list_python2
+
def h_fun(fun):
"""
Hash functions
@@ -879,7 +885,7 @@ def get_process():
except IndexError:
filepath = os.path.dirname(os.path.abspath(__file__)) + os.sep + 'processor.py'
cmd = [sys.executable, '-c', readf(filepath)]
- return subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, bufsize=0)
+ return subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, bufsize=0, close_fds=not is_win32)
def run_prefork_process(cmd, kwargs, cargs):
"""