MCPcopy Create free account
hub / github.com/cdgriffith/Box / _parse_box_dots

Function _parse_box_dots

box/box.py:100–108  ·  view source on GitHub ↗
(bx, item, setting=False)

Source from the content-addressed store, hash-verified

98
99
100def _parse_box_dots(bx, item, setting=False):
101 for idx, char in enumerate(item):
102 if char == "[":
103 return item[:idx], item[idx:]
104 elif char == ".":
105 return item[:idx], item[idx + 1 :]
106 if setting and "." in item:
107 return item.split(".", 1)
108 raise BoxError("Could not split box dots properly")
109
110
111def _get_dot_paths(bx, current=""):

Callers 6

test_dotsMethod · 0.90
__contains__Method · 0.85
__get_defaultMethod · 0.85
__getitem__Method · 0.85
__setitem__Method · 0.85
__delitem__Method · 0.85

Calls 1

BoxErrorClass · 0.90

Tested by 1

test_dotsMethod · 0.72