summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Holland <william.holland@codethink.co.uk>2015-05-31 00:22:28 +0100
committerWilliam Holland <william.holland@codethink.co.uk>2015-05-31 00:22:28 +0100
commitede57801be4852b30a8327a6f8094e2a1c1c70d6 (patch)
tree0216dbf4aa6db43d9a8a724f80c1a0efead16dfb
parentd334557fb68f79d7729af498bf7bac40aaa8f51a (diff)
downloadkeyboard-python-ede57801be4852b30a8327a6f8094e2a1c1c70d6.tar.bz2
Remove unnessesary line
-rw-r--r--keyboardpython/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/keyboardpython/__init__.py b/keyboardpython/__init__.py
index 7034b14..c50708a 100644
--- a/keyboardpython/__init__.py
+++ b/keyboardpython/__init__.py
@@ -41,9 +41,7 @@ def getkey(fd='default',timeout=40,buffersize=6):
while c and time.time() < endtime:
to_return += c
c = os.read(fd,buffersize)
- if to_return:
- return key.parse_code(to_return)
- else: return None
+ return key.parse_code(to_return)
def queue_keypresses(q,signal,fd='default',buffersize=6):
''' Read keypress and put in Queue q while signal