diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-03-09 00:35:08 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-03-09 00:35:08 +0300 |
commit | 5809483b78902df5e8162ca74e923369b1cb3bf3 (patch) | |
tree | 15b6697d1765aedb3176a13f24469d59eaf3630a /tools | |
parent | c9c13e07187bfa93d4dd3eb6c3a93a685ee2cc16 (diff) |
Upgrade waf to 1.5.14a
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wafadmin/Tools/config_c.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/wafadmin/Tools/config_c.py b/tools/wafadmin/Tools/config_c.py index 5663fb8b8e3..6008265dda6 100644 --- a/tools/wafadmin/Tools/config_c.py +++ b/tools/wafadmin/Tools/config_c.py @@ -541,8 +541,10 @@ def run_c_code(self, *k, **kw): # if we need to run the program, try to get its result if kw['execute']: + ak = {} # syntax for python < 2.5, don't touch + ak['stdout'] = ak['stderr'] = Utils.pproc.PIPE args = Utils.to_list(kw.get('exec_args', [])) - proc = Utils.pproc.Popen([lastprog], *args, stdout=Utils.pproc.PIPE, stderr=Utils.pproc.PIPE) + proc = Utils.pproc.Popen([lastprog], *args, **ak) (out, err) = proc.communicate() w = self.log.write w(str(out)) |