Changeset eaab26a in rtems-source-builder for source-builder/sb/version.py


Ignore:
Timestamp:
Mar 10, 2016, 3:52:25 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
14392cc
Parents:
7309d94
Message:

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

Updates #2619.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/version.py

    r7309d94 reaab26a  
    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.