summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Holland <william.holland@codethink.co.uk>2015-05-30 20:02:19 +0100
committerWilliam Holland <william.holland@codethink.co.uk>2015-05-30 20:02:19 +0100
commit6272a668b40e84fc720fc6ceba4301a9d2f8665d (patch)
tree31eb2c0725154cb7145b11a2215b7f65ce9d789c
parentf0f668e590a908ab159538740f1679ad351eb85b (diff)
downloadkeyboard-python-6272a668b40e84fc720fc6ceba4301a9d2f8665d.tar.bz2
Remove a couple of newlines
-rw-r--r--keyboardpython/key.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/keyboardpython/key.py b/keyboardpython/key.py
index 548ef1d..fa26b25 100644
--- a/keyboardpython/key.py
+++ b/keyboardpython/key.py
@@ -206,9 +206,7 @@ def parse_code(code):
else: key_comb = KeyCombination(ALT)
elif char in _special_chars.keys():
key_comb = KeyCombination(_special_chars[char])
- elif _is_ctrl_alpha(char):
- key_comb = _get_ctrl_alpha(char)
- else:
- key_comb = KeyCombination(char)
+ elif _is_ctrl_alpha(char): key_comb = _get_ctrl_alpha(char)
+ else: key_comb = KeyCombination(char)
to_return.add_keyCombination(key_comb)
return to_return