diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-02-19 12:30:54 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 12:40:14 +0100 |
commit | 4766e1190a7ccb4c5a8f21ce3e8919637ff9c142 (patch) | |
tree | 8bab0ef8f6677f18ffdccf257bf90425ccbdfe10 /gbp/scripts/import_srpm.py | |
parent | 0a4725c045a5a55592dafd41c6ef6f9bab4791cd (diff) |
Handle ConfigParser -> configparser rename
to work towards Python3 support
Gbp-Dch: Ignore
Diffstat (limited to 'gbp/scripts/import_srpm.py')
-rwxr-xr-x | gbp/scripts/import_srpm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/import_srpm.py b/gbp/scripts/import_srpm.py index 7ca87aa..a976f2a 100755 --- a/gbp/scripts/import_srpm.py +++ b/gbp/scripts/import_srpm.py @@ -17,7 +17,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """Import an RPM source package into a Git repository""" -import ConfigParser +from six.moves import configparser import sys import re import os @@ -122,7 +122,7 @@ def build_parser(name): prefix='', usage='%prog [options] /path/to/package' '.src.rpm') - except ConfigParser.ParsingError as err: + except configparser.ParsingError as err: gbp.log.err(err) return None |