diff options
author | biao716.wang <biao716.wang@samsung.com> | 2022-10-28 12:42:00 +0900 |
---|---|---|
committer | biao716.wang <biao716.wang@samsung.com> | 2022-10-28 22:27:21 +0900 |
commit | 1e5da010ab8cb514b495eb7c1d3afce6baec7f4d (patch) | |
tree | 5b76563463d1b46ff399bf99907c54e5ce03e561 /gbp/scripts/pq_bb.py | |
parent | b0bfbb2cab1b0ebdc9657c89de6bc21ab0de173b (diff) | |
download | git-buildpackage-1e5da010ab8cb514b495eb7c1d3afce6baec7f4d.tar.gz git-buildpackage-1e5da010ab8cb514b495eb7c1d3afce6baec7f4d.tar.bz2 git-buildpackage-1e5da010ab8cb514b495eb7c1d3afce6baec7f4d.zip |
port code from python2.x to python3.x
Change-Id: I798c72d07e44839cc5d1e25ec75fca0bd8068567
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'gbp/scripts/pq_bb.py')
-rwxr-xr-x | gbp/scripts/pq_bb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/pq_bb.py b/gbp/scripts/pq_bb.py index 23e9e896..e1dbae13 100755 --- a/gbp/scripts/pq_bb.py +++ b/gbp/scripts/pq_bb.py @@ -18,7 +18,7 @@ # """manage patches in a patch queue""" -import ConfigParser +import configparser import errno import os import shutil @@ -289,7 +289,7 @@ def build_parser(name): try: parser = GbpOptionParserBB(command=os.path.basename(name), prefix='', usage=USAGE_STRING) - except ConfigParser.ParsingError as err: + except configparser.ParsingError as err: gbp.log.err(err) return None @@ -411,7 +411,7 @@ def main(argv): except GitRepositoryError as err: gbp.log.err("Git command failed: %s" % err) retval = 1 - except GbpError, err: + except GbpError as err: if len(err.__str__()): gbp.log.err(err) retval = 1 |