Changeset 29f23e0 in rtems-source-builder


Ignore:
Timestamp:
Mar 10, 2016, 3:52:25 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.9, master
Children:
d78a63f
Parents:
334c22c
git-author:
Chris Johns <chrisj@…> (03/10/16 03:52:25)
git-committer:
Chris Johns <chrisj@…> (03/10/16 03:53:53)
Message:

sb: Fix configparser import on Python2 in version.py.

Updates #2619.

Location:
source-builder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb-set-builder

    r334c22c r29f23e0  
    2525sys.path.insert(0, base + '/sb')
    2626
    27 import setbuilder
    28 
    2927try:
    3028    import setbuilder
  • source-builder/sb/version.py

    r334c22c r29f23e0  
    5151    for ver in [top, '..']:
    5252        if path.exists(path.join(ver, 'VERSION')):
    53             import configparser
     53            try:
     54                import configparser
     55            except ImportError:
     56                import ConfigParser as configparser
    5457            v = configparser.SafeConfigParser()
    5558            v.read(path.join(ver, 'VERSION'))
Note: See TracChangeset for help on using the changeset viewer.