More flake8 fixes.

This commit is contained in:
Dain Nilsson 2017-11-07 15:44:16 +01:00
parent 257b09dc86
commit f37df42c43
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -147,13 +147,13 @@ class Controller(object):
def refresh_slot_credentials(self, slots, digits, timestamp):
result = []
if slots[0]:
cred = self._read_slot_cred(1, digits[0], timestamp)
if cred:
result.append(cred)
entry = self._read_slot_cred(1, digits[0], timestamp)
if entry:
result.append(entry)
if slots[1]:
cred = self._read_slot_cred(2, digits[1], timestamp)
if cred:
result.append(cred)
entry = self._read_slot_cred(2, digits[1], timestamp)
if entry:
result.append(entry)
return [pair_to_dict(cred, code) for (cred, code) in result]
def _read_slot_cred(self, slot, digits, timestamp):