diff options
author | mathieui <mathieui@mathieui.net> | 2014-04-05 21:42:27 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-04-05 21:42:27 +0200 |
commit | 7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705 (patch) | |
tree | d15f357b9c0ac74ea2ec8585d4594b2b5bf32d4f /src/keyboard.py | |
parent | 8def5609d925c89004c906d67a7e1d3028706f32 (diff) | |
download | poezio-7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705.tar.gz poezio-7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705.tar.bz2 poezio-7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705.tar.xz poezio-7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705.zip |
Do not instantiate Keyboard at module-level
Diffstat (limited to 'src/keyboard.py')
-rwxr-xr-x | src/keyboard.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/keyboard.py b/src/keyboard.py index 3e65d33c..34b1c185 100755 --- a/src/keyboard.py +++ b/src/keyboard.py @@ -180,9 +180,8 @@ class Keyboard(object): self.escape = False return ret_list -keyboard = Keyboard() - if __name__ == '__main__': + keyboard = Keyboard() s = curses.initscr() curses.noecho() curses.cbreak() |