xrange is called 'range' in python3, change is python2 compatible

testing/mmn/python3_KeysView_object_is_not_indexable
Mikael Nordfeldth 2013-07-24 02:00:03 +02:00
parent 43191ab4af
commit 59c19c8816
1 changed files with 1 additions and 1 deletions

View File

@ -1000,7 +1000,7 @@ class ImportResult(object):
n_uids n_subk n_sigs n_revoc sec_read sec_imported sec_dups
not_imported'''.split()
_counts = collections.OrderedDict(
zip(_fields, [int(0) for x in xrange(len(_fields))]) )
zip(_fields, [int(0) for x in range(len(_fields))]) )
#: A list of strings containing the fingerprints of the GnuPG keyIDs
#: imported.