aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-04-01 13:29:55 +0000
committerlloyd <[email protected]>2013-04-01 13:29:55 +0000
commitd909d4a4555a8761da2eaebf008993d9734cc95b (patch)
tree1b3627c910cba833401ce7e9c5d7035f4667d9b1 /configure.py
parentc7f025668d9166568c29a193881b7f041de633e1 (diff)
Fix for python 3
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index a86530f29..c38297219 100755
--- a/configure.py
+++ b/configure.py
@@ -1787,7 +1787,7 @@ def main(argv = None):
gcc_version = stdout.strip()
logging.info('Detected gcc version %s' % (gcc_version))
- return map(int, gcc_version.split('.')[0:2])
+ return [int(v) for v in gcc_version.split('.')]
except OSError:
logging.warning('Could not execute %s for version check' % (gcc_bin))
return None
@@ -1887,7 +1887,7 @@ if __name__ == '__main__':
main()
except Exception as e:
logging.error(str(e))
- #import traceback
- #traceback.print_exc(file=sys.stderr)
+ import traceback
+ traceback.print_exc(file=sys.stderr)
sys.exit(1)
sys.exit(0)