summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Holland <william.holland@codethink.co.uk>2015-05-30 22:27:03 +0100
committerWilliam Holland <william.holland@codethink.co.uk>2015-05-30 22:27:03 +0100
commit64377b83e7d900578cc70abfbf8d52d668998511 (patch)
tree860721d574c4434d97d5813d2e82b61adb9670b7
parent3e8ae61a56d8db4f027d1ac575f70d3e0c346325 (diff)
downloadkeyboard-python-64377b83e7d900578cc70abfbf8d52d668998511.tar.bz2
Make match_start_in_table private
-rw-r--r--keyboardpython/key.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboardpython/key.py b/keyboardpython/key.py
index 68c1c1e..efd6226 100644
--- a/keyboardpython/key.py
+++ b/keyboardpython/key.py
@@ -168,7 +168,7 @@ def _get_ctrl_alpha(code):
alpha_key = Key(letter)
return KeyCombination(alpha_key,CTRL)
-def match_start_in_table(_code,table):
+def _match_start_in_table(_code,table):
import re
code_str = ''.join(_code)
for c in table.keys():
@@ -193,11 +193,11 @@ def parse_code(code):
return KeyCombination(key)
char = _code.pop(0)
if char == '[':
- _code, key_comb = match_start_in_table(_code,
+ _code, key_comb = _match_start_in_table(_code,
_escape_brace_codes)
if not key_comb: key_comb = KeyCombination('[',ALT)
elif char == 'O':
- _code, key_comb = match_start_in_table(_code,
+ _code, key_comb = _match_start_in_table(_code,
_escape_O_codes)
if not key_comb: key_comb = KeyCombination('O',ALT)
else: key_comb = KeyCombination(char,ALT)