Fix flake8

This commit is contained in:
9and3r
2015-05-23 15:04:02 +02:00
parent f4074da9e1
commit eefc6c40ef
4 changed files with 55 additions and 61 deletions

View File

@@ -119,7 +119,7 @@ class Keyboard(BaseScreen):
self.listener.text_input(text)
self.manager.close_keyboard()
elif touch_event.type == InputManager.key:
if isinstance(touch_event.unicode, unicode):
if not isinstance(touch_event.unicode, int):
if touch_event.unicode == u'\x08':
self.other_objects.get_object("text").remove_text(1, False)
else: