aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-18 07:22:46 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-18 07:22:46 +0100
commit4e0139413360890cfdad8627d089b08de7936f51 (patch)
treed1955756aae743220a51741841c9a04f3905e256
parent3f4b9f89e1baa2f23140fcb87519da3afc3f12ae (diff)
Drop unused variable
to make flake8 happy
-rw-r--r--gbp/scripts/common/buildpackage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/common/buildpackage.py b/gbp/scripts/common/buildpackage.py
index 8fd7102c..4facf68c 100644
--- a/gbp/scripts/common/buildpackage.py
+++ b/gbp/scripts/common/buildpackage.py
@@ -89,7 +89,7 @@ def git_archive_submodules(repo, treeish, output, prefix, comp_type, comp_level,
# order to avoid determining the output filename of the compressor
try:
comp_level_opt = '-%d' % comp_level if comp_level is not None else ''
- except TypeError as e:
+ except TypeError:
raise GbpError("Invalid compression level '%s'" % comp_level)
ret = os.system("%s --stdout %s %s %s > %s" %
(comp_type, comp_level_opt, comp_opts, main_archive,
@@ -113,7 +113,7 @@ def git_archive_single(treeish, output, prefix, comp_type, comp_level, comp_opts
pipe.prepend("git archive --format=%s --prefix=%s %s" % (format, prefix, treeish), '.-')
try:
comp_level_opt = '-%d' % comp_level if comp_level is not None else ''
- except TypeError as e:
+ except TypeError:
raise GbpError("Invalid compression level '%s'" % comp_level)
if comp_type:
pipe.append('%s -c %s %s' % (comp_type, comp_level_opt, comp_opts), '--')