Edit File: pprint.pyc
� ��7ec�����������@���s��d��Z��d�d�l�Z�d�d�l�Z�y�d�d�l�m�Z�Wn!�e�k �rU�d�d�l�m�Z�n�Xd�d�d�d�d�d �g�Z�d �j �Z �e�Z�e �Z�e�Z�d�d�d�d�d ���Z�d�d�d�d���Z�d����Z�d����Z�d����Z�d����Z�d �d�d�������YZ�d����Z�d����Z�d�d���Z�e�d�k�re����n��d�S(���s/��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. i����N(���t���StringIOt���pprintt���pformatt ���isreadablet���isrecursivet���safereprt ���PrettyPrinters���, i���iP���c������ ���C���s2���t��d�|�d�|�d�|�d�|���}�|�j�|����d�S(���sA���Pretty-print a Python object to a stream [default is sys.stdout].t���streamt���indentt���widtht���depthN(���R���R���(���t���objectR���R���R ���R ���t���printer(����(����s���/usr/lib64/python2.7/pprint.pyR���7���s����c���������C���s"���t��d�|�d�|�d�|���j�|����S(���s<���Format a Python object into a pretty-printed representation.R���R ���R ���(���R���R���(���R���R���R ���R ���(����(����s���/usr/lib64/python2.7/pprint.pyR���=���s����c���������C���s���t��|��i��d�d���d�S(���s=���Version of repr() which can handle recursive data structures.i����N(���t ���_safe_reprt���None(���R���(����(����s���/usr/lib64/python2.7/pprint.pyR���A���s����c���������C���s���t��|��i��d�d���d�S(���s4���Determine if saferepr(object) is readable by eval().i����i���N(���R ���R���(���R���(����(����s���/usr/lib64/python2.7/pprint.pyR���E���s����c���������C���s���t��|��i��d�d���d�S(���s8���Determine if object requires a recursive representation.i����i���N(���R ���R���(���R���(����(����s���/usr/lib64/python2.7/pprint.pyR���I���s����c���������C���s@���t��j�����.�t�j�r,�t��j�d�d�t���n��t�|����SWd��QXd��S(���Nt���ignores%���comparing unequal types not supported(���t���warningst���catch_warningst���_syst���py3kwarningt���filterwarningst���DeprecationWarningt���sorted(���t���iterable(����(����s���/usr/lib64/python2.7/pprint.pyt���_sortedM���s ���� c�����������B���s\���e��Z�d��d�d �d �d���Z�d����Z�d����Z�d����Z�d����Z�d����Z�d����Z �d ����Z �RS(���i���iP���c���������C���s����t��|���}�t��|���}�|�d�k�s0�t�d�����|�d�k�sT�|�d�k�sT�t�d�����|�sf�t�d�����|�|��_�|�|��_�|�|��_�|�d�k �r��|�|��_�n�t�j�|��_�d�S(���s���Handle pretty printing operations onto a stream using a set of configured parameters. indent Number of spaces to indent for each level of nesting. width Attempted maximum number of columns in the output. depth The maximum depth to print out nested structures. stream The desired output stream. If omitted (or false), the standard output stream available at construction will be used. i����s���indent must be >= 0s���depth must be > 0s���width must be != 0N( ���t���intt���AssertionErrorR���t���_deptht���_indent_per_levelt���_widtht���_streamR���t���stdout(���t���selfR���R ���R ���R���(����(����s���/usr/lib64/python2.7/pprint.pyt���__init__U���s����$ c���������C���s3���|��j��|�|��j�d�d�i��d���|��j�j�d���d��S(���Ni����s��� (���t���_formatR���t���write(���R ���R���(����(����s���/usr/lib64/python2.7/pprint.pyR���t���s����c���������C���s/���t�����}�|��j�|�|�d�d�i��d���|�j����S(���Ni����(���t ���_StringIOR"���t���getvalue(���R ���R���t���sio(����(����s���/usr/lib64/python2.7/pprint.pyR���x���s���� c���������C���s���|��j��|�i��d�d���d�S(���Ni����i���(���t���format(���R ���R���(����(����s���/usr/lib64/python2.7/pprint.pyR���}���s����c���������C���s,���|��j��|�i��d�d���\�}�}�}�|�o+�|�S(���Ni����(���R'���(���R ���R���t���st���readablet ���recursive(����(����s���/usr/lib64/python2.7/pprint.pyR�������s����!c���������C���s���|�d�}�t��|���}�|�|�k�rK�|�j�t�|�����t�|��_�t�|��_�d��S|��j�|�|�|�d���}�t�|���} �t �|���|��j �d�|�|�k�} �|�j�}�|��j�r��|�|��j�k�r��|�|���d��St�| �d�d����}�t�| �t���r�|�t�j�k�r�|�d���|��j�d�k�r!|�|��j�d�d���n��t �|���} �| �rvd�|�|�<|�|��j�}�t�|�j������}�|�d�\�}�}�|��j�|�|�|���}�|�|���|�d���|��j�|�|�|�t �|���d�|�d�|�|���| �d�k�r_x��|�d�D]~�\�}�}�|��j�|�|�|���}�| �r|�d�d�|�|�f���n�|�d �|���|��j�|�|�|�t �|���d�|�d�|�|���q�Wn��|�|��j�}�|�|�=n��|�d ���d��St�| �t���r�|�t�j�k�s�t�| �t���r�|�t�j�k�s�t�| �t���r�|�t�j�k�s�t�| �t���r�|�t�j�k�r�t �|���} �t�| �t���r*|�d���d�}�nv�t�| �t���rL|�d ���d�}�nT�| �s`|�|���d��S|�| �j���|�d���d�}�|�t�| �j���d�7}�t�|���}�|��j�d�k�r�| �r�|�|��j�d�d���n��| �r�d�|�|�<|�|��j�}�|��j�|�d�|�|�|�d�|�|���| �d�k�rwxZ�|�d�D]K�}�| �rF|�d�d�|���n �|�d���|��j�|�|�|�|�d�|�|���q%Wn��|�|��j�}�|�|�=n��t�| �t���r�| �d�k�r�|�d���n��|�|���d��S|�|���d��S(���Ni���t���__repr__t���{t��� i����s���: i���s���, %s%s: s���, %s: t���}t���[t���]t���(t���)s���([s���])s���, s���, t���,(���t���_idR#���t ���_recursiont���Truet ���_recursivet���Falset ���_readablet���_reprt���_typet���_lenR���R���t���getattrR���t ���issubclasst���dictR+���R���R���t���itemsR"���t���listt���tuplet���sett ���frozensett���__name__t���len(���R ���R���R���R���t ���allowancet���contextt���levelt���objidt���rept���typt���sepLinesR#���t���rt���lengthR@���t���keyt���entt���endchar(����(����s���/usr/lib64/python2.7/pprint.pyR"�������s����� ! c���������C���sR���|��j��|�|�j����|��j�|���\�}�}�}�|�s<�t�|��_�n��|�rN�t�|��_�n��|�S(���N(���R'���t���copyR���R8���R9���R6���R7���(���R ���R���RH���RI���t���reprR)���R*���(����(����s���/usr/lib64/python2.7/pprint.pyR:�������s����c���������C���s���t��|�|�|�|���S(���s����Format object for a specific context, returning a string and flags indicating whether the representation is 'readable' and whether the object represents a recursive construct. (���R ���(���R ���R���RH���t ���maxlevelsRI���(����(����s���/usr/lib64/python2.7/pprint.pyR'�������s����N(���RE���t ���__module__R���R!���R���R���R���R���R"���R:���R'���(����(����(����s���/usr/lib64/python2.7/pprint.pyR���T���s��� \ c��� ������C���s<��t��|����}�|�t�k�r�d�t�j�k�r:�t�|����t�t�f�Sd�|��k�rh�d�|��k�rh�d�}�i�d�d�6}�n�d�}�i�d�d�6}�|�j�}�t����}�|�j �} �xG�|��D]?�} �| �j ����r��| �| ���q��| �|�| �t�| ���d�d�!����q��Wd�|�|�j����|�f�t�t�f�St�|�d �d����}�t�|�t���r�|�t�j�k�r�|��sCd �t�t�f�St�|����}�|�rt|�|�k�rtd�t�|�|�k�f�S|�|�k�r�t�|����t�t�f�Sd�|�|�<t�} �t�}�g��}�|�j�}�|�d�7}�t�}�x��t�|��j������D]��\�}�}�|�|�|�|�|���\�}�}�}�|�|�|�|�|���\�}�}�}�|�d�|�|�f���| �oF|�oF|�} �|�sU|�r�t�}�q�q�W|�|�=d �t�|���| �|�f�St�|�t���r�|�t�j�k�s�t�|�t���r|�t�j�k�rt�|�t���r�|��s�d�t�t�f�Sd�}�n4�t�|����d�k�rd�}�n�|��sd�t�t�f�Sd�}�t�|����}�|�rP|�|�k�rP|�d�t�|�|�k�f�S|�|�k�rot�|����t�t�f�Sd�|�|�<t�} �t�}�g��}�|�j�}�|�d�7}�xT�|��D]L�}�t�|�|�|�|���\�}�}�}�|�|���|�s�t�} �n��|�r�t�}�q�q�W|�|�=|�t�|���| �|�f�St�|����}�|�|�o5|�j�d���t�f�S(���Nt���localet���'t���"s���\"s���\'i���i����s���%s%s%sR+���s���{}s���{...}s���%s: %ss���{%s}s���[]s���[%s]s���(%s,)s���()s���(%s)s���...t���<(���R;���t���strR���t���modulesRT���R6���R8���t���getR$���R#���t���isalphaR%���R=���R���R>���R?���R+���R4���R5���t���appendR ���R���R@���t ���_commajoinRA���RB���R<���t ���startswith( ���R���RH���RU���RI���RL���t���closuret���quotest���qgetR&���R#���t���charRN���RJ���R)���R*���t ���componentsR_���R���t���kt���vt���kreprt ���kreadablet���krecurt���vreprt ���vreadablet���vrecurR'���t���ot���oreprt ���oreadablet���orecurRK���(����(����s���/usr/lib64/python2.7/pprint.pyR �������s����� $ c���������C���s���d�t��|����j�t�|����f�S(���Ns���<Recursion on %s with id=%s>(���R;���RE���R4���(���R���(����(����s���/usr/lib64/python2.7/pprint.pyR5���G��s����c���������C���s����d�d��l��}�|��d��k�rH�d�d�d�d�g�i�d�d�6d �d �6f�g�d�}��n��t����}�|�j�����}�t�|��i��d��d���|�j�����}�|�j�|����|�j�����}�d �G|�|�GHd�G|�|�GHd��S(���Ni����t���stringi���i���i���i���i���i���i���i���i���i����s���_safe_repr:s���pformat:(���i���i���(���t���timeR���R���R ���R���(���R���Rt���t���pt���t1t���t2t���t3(����(����s���/usr/lib64/python2.7/pprint.pyt ���_perfcheckL��s����0 t���__main__(����(���t���__doc__t���sysR���R���t ���cStringIOR����R$���t���ImportErrort���__all__t���joinR`���t���idR4���RF���R<���t���typeR;���R���R���R���R���R���R���R���R���R ���R5���Ry���RE���(����(����(����s���/usr/lib64/python2.7/pprint.pyt���<module>#���s0��� � T