summaryrefslogtreecommitdiff
path: root/gbp/scripts/import_orig.py
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2022-10-28 12:42:00 +0900
committerbiao716.wang <biao716.wang@samsung.com>2022-10-28 22:27:21 +0900
commit1e5da010ab8cb514b495eb7c1d3afce6baec7f4d (patch)
tree5b76563463d1b46ff399bf99907c54e5ce03e561 /gbp/scripts/import_orig.py
parentb0bfbb2cab1b0ebdc9657c89de6bc21ab0de173b (diff)
downloadgit-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/import_orig.py')
-rw-r--r--gbp/scripts/import_orig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py
index 56b1d9dc..532b3e4a 100644
--- a/gbp/scripts/import_orig.py
+++ b/gbp/scripts/import_orig.py
@@ -17,7 +17,7 @@
#
"""Import a new upstream version into a GIT repository"""
-import ConfigParser
+import configparser
import os
import sys
import gbp.tmpfile as tempfile
@@ -146,7 +146,7 @@ def build_parser(name):
try:
parser = GbpOptionParserDebian(command=os.path.basename(name), prefix='',
usage='%prog [options] /path/to/upstream-version.tar.gz | --uscan')
- except ConfigParser.ParsingError as err:
+ except configparser.ParsingError as err:
gbp.log.err(err)
return None