MCPcopy
hub / github.com/scrapy/scrapy / pformat

Function pformat

scrapy/utils/display.py:46–47  ·  view source on GitHub ↗
(obj: Any, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

44
45
46def pformat(obj: Any, *args: Any, **kwargs: Any) -> str:
47 return _colorize(pformat_(obj), kwargs.pop("colorize", True))
48
49
50def pprint(obj: Any, *args: Any, **kwargs: Any) -> None:

Callers 11

test_pformatFunction · 0.90
test_pformat_not_ttyFunction · 0.90
test_pformat_old_windowsFunction · 0.90
test_pformat_windowsFunction · 0.90
test_pformat_no_pygmentsFunction · 0.90
__repr__Method · 0.85
pprintFunction · 0.85
_repr_pretty_Method · 0.85
_send_reportMethod · 0.85

Calls 2

_colorizeFunction · 0.85
popMethod · 0.45

Tested by 7

test_pformatFunction · 0.72
test_pformat_not_ttyFunction · 0.72
test_pformat_old_windowsFunction · 0.72
test_pformat_windowsFunction · 0.72
test_pformat_no_pygmentsFunction · 0.72