summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/version.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-03-07 11:56:02 +1100
committerChris Johns <chrisj@rtems.org>2016-03-07 15:02:58 +1100
commit3a972f610213bab8374b5518f6a139ceed95823a (patch)
tree9ee412fc09f09ea4d83a785981180100ac157891 /source-builder/sb/version.py
parentClean up 4.9 build issues. (diff)
downloadrtems-source-builder-3a972f610213bab8374b5518f6a139ceed95823a.tar.bz2
sb: Update code base to support Python3 and Python2.
Fix Windows support to allow MSYS2 Python to be used. Updates #2619.
Diffstat (limited to 'source-builder/sb/version.py')
-rw-r--r--source-builder/sb/version.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/source-builder/sb/version.py b/source-builder/sb/version.py
index bd0e133..8b67b4e 100644
--- a/source-builder/sb/version.py
+++ b/source-builder/sb/version.py
@@ -1,6 +1,6 @@
#
# RTEMS Tools Project (http://www.rtems.org/)
-# Copyright 2010-2015 Chris Johns (chrisj@rtems.org)
+# Copyright 2010-2016 Chris Johns (chrisj@rtems.org)
# All rights reserved.
#
# This file is part of the RTEMS Tools package in 'rtems-tools'.
@@ -22,6 +22,8 @@
# to the top directory.
#
+from __future__ import print_function
+
import sys
import error
@@ -48,8 +50,8 @@ def _load_released_version_config():
top = _top()
for ver in [top, '..']:
if path.exists(path.join(ver, 'VERSION')):
- import ConfigParser
- v = ConfigParser.SafeConfigParser()
+ import configparser
+ v = configparser.SafeConfigParser()
v.read(path.join(ver, 'VERSION'))
return v
return None
@@ -107,4 +109,4 @@ def load_release_hashes(macros):
sources.hash((hs[0], hash[0], hs[1]), macros, hash_error)
if __name__ == '__main__':
- print 'Version: %s' % (str())
+ print('Version: %s' % (str()))