Merge remote-tracking branch 'mmn/python3_KeysView_object_is_not_indexable' into develop

* FIX Python3 error where a :class:`collections.OrderedDict` instance,
   including it's keys() method, is not iterable.
 * CLOSES PR#7 In Python 3 OrderedDict.keys() are not indexable
fix/5-genkeyinput-default-type
Isis Lovecruft 2013-07-27 17:27:31 +00:00
commit e2646cb4c4
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 2 additions and 2 deletions

View File

@ -1056,8 +1056,8 @@ class ImportResult(object):
'status': self._problem_reason[reason]})
elif key == "IMPORT_RES":
import_res = value.split()
for x in range(len(self.counts)):
self.counts[self.counts.keys()[x]] = int(import_res[x])
for x in self.counts.keys():
self.counts[x] = int(import_res.pop(0))
elif key == "KEYEXPIRED":
res = {'fingerprint': None,
'status': 'Key expired'}