[PATCH evemu 03/16] python: rename _map to _type_map for better clarity
Peter Hutterer
peter.hutterer at who-t.net
Mon Aug 11 18:34:37 PDT 2014
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
python/evemu/make-event-names.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/python/evemu/make-event-names.py b/python/evemu/make-event-names.py
index 4938215..73399b9 100755
--- a/python/evemu/make-event-names.py
+++ b/python/evemu/make-event-names.py
@@ -77,7 +77,7 @@ def print_python_bits(bits, prefix):
print("")
def print_python_map(bits):
- print("_map = {")
+ print("_type_map = {")
for val, name in getattr(bits, "ev").items():
name = name[3:]
@@ -113,7 +113,7 @@ def print_python_mapping_table(bits):
if type(event_code) != int:
raise TypeError("expected an int")
- return _map[event_type][event_code]
+ return _type_map[event_type][event_code]
def _event_get_value(event_type, event_code = None):
'''
@@ -127,7 +127,7 @@ def print_python_mapping_table(bits):
if type(event_code) != str:
raise TypeError("expected a string")
- return _map[event_type][event_code]
+ return _type_map[event_type][event_code]
""")
def parse_define(bits, line):
--
1.9.3
More information about the Input-tools
mailing list