aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/pkg
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 13:09:31 +0100
committerGuido Günther <agx@sigxcpu.org>2015-02-20 13:00:52 +0100
commit2816c80e27f08ff715ac8f8ef4b77dc678fc606a (patch)
treee6942d0b376c805c52285d05bb3e0ce46150fbec /gbp/pkg
parente9d53ae1f4e2c4bed324421ab95382648acf8dc5 (diff)
Use six.iteritems() and six.iterkeys()
to work towards Python3 support Gbp-Dch: Ignore
Diffstat (limited to 'gbp/pkg')
-rw-r--r--gbp/pkg/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/pkg/__init__.py b/gbp/pkg/__init__.py
index 34f81cda..f3a81ae0 100644
--- a/gbp/pkg/__init__.py
+++ b/gbp/pkg/__init__.py
@@ -21,6 +21,8 @@ import os
import re
import glob
+import six
+
import gbp.command_wrappers as gbpc
from gbp.errors import GbpError
@@ -83,7 +85,7 @@ def parse_archive_filename(filename):
base_name = ".".join(split[:-1])
(archive_fmt, compression) = (split[-1], None)
else:
- for (c, o) in compressor_opts.iteritems():
+ for (c, o) in six.iteritems(compressor_opts):
if o[1] == split[-1]:
base_name = ".".join(split[:-1])
compression = c