w$oF 0 d Z ddlZddlZddlZddlZddlZ ddl
mZ g dZ
ddddd d
Zddddd dZddd
Zd Zd Zd Z G d d Zd Z G d d Z eeeeeee ed h Zd Z ddZ!d Z"e#dk r e! dS dS )a/ Support to pretty-print lists, tuples, & dictionaries recursively.
Very simple, but useful, especially in debugging data structures.
Classes
-------
PrettyPrinter()
Handle pretty-printing operations onto a stream using a configured
set of formatting parameters.
Functions
---------
pformat()
Format a Python object into a pretty-printed representation.
pprint()
Pretty-print a Python object to a stream [default is sys.stdout].
saferepr()
Generate a 'standard' repr()-like value, but protect against recursive
data structures.
N)StringIO)pprintpformat
isreadableisrecursivesaferepr
PrettyPrinterpp P FTcompact
sort_dictsunderscore_numbersc \ t ||||||| }| | dS )zAPretty-print a Python object to a stream [default is sys.stdout].)streamindentwidthdepthr r r N)r r ) objectr r r r r r r printers -/opt/alt/python311/lib64/python3.11/pprint.pyr r 0 sC fEJ-/ / /G NN6 c R t |||||| | S )z