MCPcopy Create free account
hub / github.com/Julow/Unexpected-Keyboard / parse_layout

Function parse_layout

check_layout.py:55–63  ·  view source on GitHub ↗
(fname)

Source from the content-addressed store, hash-verified

53 keys.add(k)
54
55def parse_layout(fname):
56 keys = set()
57 dup = set()
58 root = ET.parse(fname).getroot()
59 if root.tag != "keyboard":
60 return None
61 for row in root:
62 parse_row_from_et(row, keys, dup)
63 return root, keys, dup
64
65def parse_row(fname):
66 keys = set()

Callers 1

check_layout.pyFile · 0.85

Calls 2

parse_row_from_etFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected