Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
46
def
pformat(obj: Any, *args: Any, **kwargs: Any) -> str:
47
return
_colorize(pformat_(obj), kwargs.pop(
"colorize"
, True))
48
49
50
def
pprint(obj: Any, *args: Any, **kwargs: Any) -> None:
Callers
11
test_pformat
Function · 0.90
test_pformat_dont_colorize
Function · 0.90
test_pformat_not_tty
Function · 0.90
test_pformat_old_windows
Function · 0.90
test_pformat_windows_no_terminal_processing
Function · 0.90
test_pformat_windows
Function · 0.90
test_pformat_no_pygments
Function · 0.90
__repr__
Method · 0.85
pprint
Function · 0.85
_repr_pretty_
Method · 0.85
_send_report
Method · 0.85
Calls
2
_colorize
Function · 0.85
pop
Method · 0.45
Tested by
7
test_pformat
Function · 0.72
test_pformat_dont_colorize
Function · 0.72
test_pformat_not_tty
Function · 0.72
test_pformat_old_windows
Function · 0.72
test_pformat_windows_no_terminal_processing
Function · 0.72
test_pformat_windows
Function · 0.72
test_pformat_no_pygments
Function · 0.72