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 indexablefix/5-genkeyinput-default-type
commit
e2646cb4c4
|
@ -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'}
|
||||
|
|
Loading…
Reference in New Issue