aboutsummaryrefslogtreecommitdiff
path: root/gbp/scripts/buildpackage_rpm.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-10-23 16:16:51 +0200
committerGuido Günther <agx@sigxcpu.org>2015-10-23 23:19:53 +0200
commite02db7953432c79f65d0828ccfc73570667c86d2 (patch)
tree1368e116248695067d22421d489e8adf4e67cd60 /gbp/scripts/buildpackage_rpm.py
parent0bb2064be033fe04477a74e8c3d88891d9386cb5 (diff)
buildpackage_rpm: use six.configparser
for Python3 compatibility
Diffstat (limited to 'gbp/scripts/buildpackage_rpm.py')
-rw-r--r--gbp/scripts/buildpackage_rpm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py
index ff10110..37a6c18 100644
--- a/gbp/scripts/buildpackage_rpm.py
+++ b/gbp/scripts/buildpackage_rpm.py
@@ -18,7 +18,7 @@
#
"""Build an RPM package out of a Git repository"""
-import ConfigParser
+from six.moves import configparser
import os
import shutil
import sys
@@ -299,7 +299,7 @@ def build_parser(name, prefix=None, git_treeish=None):
try:
parser = GbpOptionParserRpm(command=os.path.basename(name),
prefix=prefix)
- except ConfigParser.ParsingError as err:
+ except configparser.ParsingError as err:
gbp.log.err(err)
return None