def _dict(self):
"""
Construct an ordered dict from the naming elements of the path
"""
d = OrderedDict()
for json_fragment in re.findall('\((.*?)\)', self, re.M):
json_ordered_dict = json.loads(re.sub("'", '"', json_fragment),
object_pairs_hook=OrderedDict)
d.update(json_ordered_dict)
return d
评论列表
文章目录