flake8: Fix warnings

One warning was left unresolved, to not conflict with PR #3.
This commit is contained in:
Stein Magnus Jodal
2015-03-24 11:52:17 +01:00
parent c1090cb1ff
commit 786cd04f06
2 changed files with 7 additions and 5 deletions

View File

@@ -87,7 +87,8 @@ class ListView():
self.move_to(direction)
else:
return int(key)
elif touch_event.type == InputManager.key and self.selected is not None:
elif (touch_event.type == InputManager.key and
self.selected is not None):
if touch_event.direction == InputManager.enter:
if self.selected is not None:
return self.selected