AlkantarClanX12
Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/ |
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/pprint.cpython-37.pyc |
B � f�Q � @ s� d Z ddlZddlZddlZddlZddlm Z dddddd gZd!dd �dd�Zd"dd �dd�Z dd� Zdd� Zdd� ZG dd� d�Zdd� ZG dd � d �Zdd� Zeeeeeeeeed�h�Zdd� Zd#dd�Z dd� Z!e"d kr�e � 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�pprint�pformat� isreadable�isrecursive�saferepr� PrettyPrinter� �P F)�compactc C s t |||||d�}|�| � dS )zAPretty-print a Python object to a stream [default is sys.stdout].)�stream�indent�width�depthr N)r r )�objectr r r r r Zprinter� r �+/opt/alt/python37/lib64/python3.7/pprint.pyr / s c C s t ||||d��| �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 dd�d S )z=Version of repr() which can handle recursive data structures.Nr )� _safe_repr)r r r r r <