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

Method _write_indent_padding

Lib/pprint.py:235–240  ·  view source on GitHub ↗
(self, write)

Source from the content-addressed store, hash-verified

233 return indent + prefix_len
234
235 def _write_indent_padding(self, write):
236 if self._expand:
237 if self._indent_per_level > 0:
238 write(self._indent_per_level * " ")
239 elif self._indent_per_level > 1:
240 write((self._indent_per_level - 1) * " ")
241
242 def _pprint_dataclass(self, object, stream, indent, allowance, context, level):
243 # Lazy import to improve module import time

Callers 4

_pprint_dictMethod · 0.95
_pprint_frozendictMethod · 0.95
_format_itemsMethod · 0.95
_pprint_counterMethod · 0.95

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected