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/config.py | |
parent | 0a4725c045a5a55592dafd41c6ef6f9bab4791cd (diff) |
Handle ConfigParser -> configparser rename
to work towards Python3 support
Gbp-Dch: Ignore
Diffstat (limited to 'gbp/scripts/config.py')
-rwxr-xr-x | gbp/scripts/config.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gbp/scripts/config.py b/gbp/scripts/config.py index 07c731c0..cb5d82dc 100755 --- a/gbp/scripts/config.py +++ b/gbp/scripts/config.py @@ -17,11 +17,10 @@ # """Query and display config file values""" -import ConfigParser +from six.moves import configparser import sys import os, os.path -from gbp.config import (GbpOptionParser, GbpOptionGroup) -from gbp.errors import GbpError +from gbp.config import GbpOptionParser from gbp.scripts.supercommand import import_command import gbp.log @@ -30,7 +29,7 @@ def build_parser(name): try: parser = GbpOptionParser(command=os.path.basename(name), prefix='', usage='%prog [options] command[.optionname] - display configuration settings') - except ConfigParser.ParsingError as err: + except configparser.ParsingError as err: gbp.log.err(err) return None |