summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Holland <william.holland@codethink.co.uk>2015-06-07 13:45:34 +0100
committerWilliam Holland <william.holland@codethink.co.uk>2015-06-07 13:45:34 +0100
commitbff125a17c839e7831aa865a7ea7d7f2af7806c6 (patch)
tree8d2608e36b73b4f2d6ad2719c9483c4f1e67fb94
parent237f58a00a0375f200f40ccfd4db5ec4fc167d29 (diff)
downloadkeyboard-python-bff125a17c839e7831aa865a7ea7d7f2af7806c6.tar.bz2
Fix queue keypresses being broken by rename
-rw-r--r--keyboardpython/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboardpython/__init__.py b/keyboardpython/__init__.py
index 9a00be0..b0dc79c 100644
--- a/keyboardpython/__init__.py
+++ b/keyboardpython/__init__.py
@@ -96,7 +96,7 @@ def queue_keypresses(q,signal,fd='default',buffersize=6):
'''
import Queue
assert isinstance(q,Queue.Queue), "expected a Queue"
- if signal: set_to_read_key(fd)
+ if signal: init(fd)
while signal:
if not q.full(): q.put(getkey(fd,buffersize))
- reset_tty(fd)
+ close(fd)