MCPcopy
hub / github.com/cherrypy/cherrypy / format

Method format

cherrypy/lib/gctools.py:88–98  ·  view source on GitHub ↗

Return a list of string reprs from a nested list of referrers.

(self, tree)

Source from the content-addressed store, hash-verified

86 return '%s: %s' % (type(obj), r)
87
88 def format(self, tree):
89 """Return a list of string reprs from a nested list of referrers."""
90 output = []
91
92 def ascend(branch, depth=1):
93 for parent, grandparents in branch:
94 output.append((' ' * depth) + self._format(parent))
95 if grandparents:
96 ascend(grandparents, depth + 1)
97 ascend(tree)
98 return output
99
100
101def get_instances(cls):

Callers 15

statsMethod · 0.95
setup.pyFile · 0.80
CPWSGIServerClass · 0.80
accessMethod · 0.80
emitMethod · 0.80
find_handlerMethod · 0.80
popargsFunction · 0.80
session_authFunction · 0.80
qvalueMethod · 0.80
cp_native_serverFunction · 0.80
testGuaranteedHooksMethod · 0.80

Calls

no outgoing calls

Tested by 12

cp_native_serverFunction · 0.64
testGuaranteedHooksMethod · 0.64
encode_filenameFunction · 0.64
test_598Method · 0.64
test_queue_fullMethod · 0.64
skip_if_bad_cookiesMethod · 0.64
test_staticMethod · 0.64
testGzipStaticCacheMethod · 0.64
test_antistampedeMethod · 0.64