File: //usr/lib64/python3.6/__pycache__/pprint.cpython-36.opt-1.pyc
3
\|Q
@ s d Z ddlZddlZddlZddlZddlm Z
dddddd gZd!dd
ddZd"dd
ddZ
dd Zdd Zdd ZG dd dZdd ZG dd d Zdd ZeeeeeeeeedhZdd Zd#ddZ dd Z!e"d kre 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)StringIOpprintpformat
isreadableisrecursivesaferepr
PrettyPrinter P F)compactc C s t |||||d}|j| dS )zAPretty-print a Python object to a stream [default is sys.stdout].)streamindentwidthdepthr N)r r )objectr r
r r r Zprinter r /usr/lib64/python3.6/pprint.pyr / s c C s t ||||dj| S )z<Format a Python object into a pretty-printed representation.)r
r r r )r r )r r
r r r r r r r 7 s c C s t | i ddd S )z=Version of repr() which can handle recursive data structures.Nr )
_safe_repr)r r r r r <