MCPcopy Index your code
hub / github.com/python/cpython / pformat

Method pformat

Lib/pprint.py:177–180  ·  view source on GitHub ↗
(self, object)

Source from the content-addressed store, hash-verified

175 self._stream.write("\n")
176
177 def pformat(self, object):
178 sio = _StringIO()
179 self._format(object, sio, 0, 0, {}, 0)
180 return sio.getvalue()
181
182 def isrecursive(self, object):
183 return self.format(object, {}, 0, 0)[2]

Callers 15

pformatFunction · 0.80
__repr__Method · 0.80
assertSequenceEqualMethod · 0.80
assertDictEqualMethod · 0.80
test_parse_certMethod · 0.80
wrap_connMethod · 0.80
test_getpeercertMethod · 0.80
test_same_as_reprMethod · 0.80
test_basic_line_wrapMethod · 0.80

Calls 2

_formatMethod · 0.95
getvalueMethod · 0.45

Tested by 15

test_parse_certMethod · 0.64
wrap_connMethod · 0.64
test_getpeercertMethod · 0.64
test_same_as_reprMethod · 0.64
test_basic_line_wrapMethod · 0.64
test_widthMethod · 0.64
test_integerMethod · 0.64
test_sorted_dictMethod · 0.64