MCPcopy Create free account
hub / github.com/nodejs/node / attrgetter

Function attrgetter

tools/inspector_protocol/jinja2/filters.py:75–82  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

73 attribute = [attribute]
74
75 def attrgetter(item):
76 for part in attribute:
77 item = environment.getitem(item, part)
78
79 if postprocess is not None:
80 item = postprocess(item)
81
82 return item
83
84 return attrgetter
85

Callers 3

__init__Method · 0.50
WriteMethod · 0.50
_PrintObjectsMethod · 0.50

Calls 2

postprocessFunction · 0.85
getitemMethod · 0.45

Tested by

no test coverage detected