ok
Direktori : /proc/thread-self/root/proc/self/root/lib64/python3.6/__pycache__/ |
Current File : //proc/thread-self/root/proc/self/root/lib64/python3.6/__pycache__/pprint.cpython-36.pyc |
3 \|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�}|j| � 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 �/usr/lib64/python3.6/pprint.pyr / s c C s t ||||d�j| �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 <