aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2017-07-05 17:22:29 +0200
committerSimon Warta <[email protected]>2017-07-05 17:24:27 +0200
commit6e1ea3f3f3184137d143e025c10a8e90294b979e (patch)
tree7ed13814bdb2abc7bb99a86e876217ab67409252 /configure.py
parent38fe6d3ab3e8a4be2becd5fd0b8c7bb4a8f1e192 (diff)
configure: explicitly concatenate stdout+stdderr for cc_putput
This prevents a lint error in newer pylint versions ("R:2600, 8: Redefinition of cc_output type from tuple to str (redefined-variable-type)") and makes code clearer.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.py b/configure.py
index 184e64b3d..e2e4f0e96 100755
--- a/configure.py
+++ b/configure.py
@@ -2592,12 +2592,13 @@ def detect_compiler_version(ccinfo, cc_bin, os_name):
cc_version = None
version = re.compile(version_re_str)
- cc_output = subprocess.Popen(cc_cmd,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- universal_newlines=True).communicate()
+ stdout, stderr = subprocess.Popen(
+ cc_cmd,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ universal_newlines=True).communicate()
+ cc_output = stdout + "\n" + stderr
- cc_output = str(cc_output)
match = version.search(cc_output)
if match: