MCPcopy
hub / github.com/lektor/lektor / _split_key

Function _split_key

lektor/utils.py:182–187  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

180
181def decode_flat_data(itemiter, dict_cls=dict):
182 def _split_key(name):
183 result = name.split(".")
184 for idx, part in enumerate(result):
185 if part.isdigit():
186 result[idx] = int(part)
187 return result
188
189 def _enter_container(container, key):
190 if key not in container:

Callers 1

decode_flat_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected