diff options
Diffstat (limited to 'gbp/scripts/submit_bb.py')
-rwxr-xr-x | gbp/scripts/submit_bb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gbp/scripts/submit_bb.py b/gbp/scripts/submit_bb.py index b3a9b852..95d29a02 100755 --- a/gbp/scripts/submit_bb.py +++ b/gbp/scripts/submit_bb.py @@ -17,7 +17,7 @@ # """Create and push submit tag""" -import ConfigParser +import configparser import os import sys from datetime import datetime @@ -38,11 +38,11 @@ def guess_remote(repo, options): raise GbpError("Local repo has no remotes configured. Please add one " "or use --remote to define the remote where to push.") elif len(remotes) == 1: - return remotes.keys()[0] + return list(remotes.keys())[0] else: raise GbpError("Local repo has multiple remotes (%s). Don't know which " "one to choose. Use --remote to define where to push." % - ', '.join(remotes.keys())) + ', '.join(list(remotes.keys()))) def build_parser(name): @@ -51,7 +51,7 @@ def build_parser(name): try: parser = GbpOptionParserBB(command=os.path.basename(name), prefix='', usage=usage_str) - except ConfigParser.ParsingError as err: + except configparser.ParsingError as err: gbp.log.err(err) return None |