???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................ž
§ÿfœ1  c               @   s)  d  Z  d d l Z d d l m Z d d l m Z d d d d d	 d
 g Z	 d j
 Z e Z e Z e Z d d d d d d „ Z d d d d d „ Z d d	 „  Z d d „  Z d d „  Z Gd d „  d ƒ Z d d „  Z Gd d
 „  d
 ƒ Z d d „  Z d d „  Z d d d „ Z e d k r%e ƒ  n  d S(   u/  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(   u   OrderedDict(   u   StringIOu   pprintu   pformatu
   isreadableu   isrecursiveu   saferepru   PrettyPrinteru   , i   iP   c          	   C   s2   t  d | d | d | d | ƒ } | j |  ƒ d S(   uA   Pretty-print a Python object to a stream [default is sys.stdout].u   streamu   indentu   widthu   depthN(   u   PrettyPrinteru   pprint(   u   objectu   streamu   indentu   widthu   depthu   printer(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   pprint3   s    c             C   s"   t  d | d | d | ƒ j |  ƒ S(   u<   Format a Python object into a pretty-printed representation.u   indentu   widthu   depth(   u   PrettyPrinteru   pformat(   u   objectu   indentu   widthu   depth(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   pformat9   s    c             C   s   t  |  i  d d ƒ d S(   u=   Version of repr() which can handle recursive data structures.i    N(   u
   _safe_repru   None(   u   object(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   saferepr=   s    c             C   s   t  |  i  d d ƒ d S(   u4   Determine if saferepr(object) is readable by eval().i    i   N(   u
   _safe_repru   None(   u   object(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu
   isreadableA   s    c             C   s   t  |  i  d d ƒ d S(   u8   Determine if object requires a recursive representation.i    i   N(   u
   _safe_repru   None(   u   object(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   isrecursiveE   s    c             B   s;   |  Ee  Z d  Z d Z d g Z d d „  Z d d „  Z d S(   u	   _safe_keyuV  Helper function for key functions when sorting unorderable objects.

    The wrapped-object will fallback to an Py2.x style comparison for
    unorderable types (sorting first comparing the type name and then by
    the obj ids).  Does not work recursively, so dict.items() must have
    _safe_key applied to both the key and the value.

    u   objc             C   s   | |  _  d  S(   N(   u   obj(   u   selfu   obj(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   __init__U   s    u   _safe_key.__init__c             C   s   y |  j  j | j  ƒ } Wn t k
 r3 t } Yn X| t k r‹ t t |  j  ƒ ƒ t |  j  ƒ f t t | j  ƒ ƒ t | j  ƒ f k  } n  | S(   N(   u   obju   __lt__u	   TypeErroru   NotImplementedu   stru   typeu   id(   u   selfu   otheru   rv(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   __lt__X   s    !*u   _safe_key.__lt__N(   u   __name__u
   __module__u   __qualname__u   __doc__u	   __slots__u   __init__u   __lt__(   u
   __locals__(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu	   _safe_keyI   s   	u	   _safe_keyc             C   s   t  |  d ƒ t  |  d ƒ f S(   u&   Helper function for comparing 2-tuplesi    i   (   u	   _safe_key(   u   t(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   _safe_tuplec   s    u   _safe_tuplec             B   s€   |  Ee  Z d  Z d d d d d d „ Z d d „  Z d d „  Z d	 d
 „  Z d d „  Z d d „  Z	 d d „  Z
 d d „  Z d S(   u   PrettyPrinteri   iP   c             C   s[   t  | ƒ } t  | ƒ } | |  _ | |  _ | |  _ | d k	 rK | |  _ n t j |  _ d S(   uò  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.

        N(   u   intu   _depthu   _indent_per_levelu   _widthu   Noneu   _streamu   _sysu   stdout(   u   selfu   indentu   widthu   depthu   stream(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   __init__h   s    			u   PrettyPrinter.__init__c             C   s3   |  j  | |  j d d i  d ƒ |  j j d ƒ d  S(   Ni    u   
(   u   _formatu   _streamu   write(   u   selfu   object(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   pprint‡   s    u   PrettyPrinter.pprintc             C   s/   t  ƒ  } |  j | | d d i  d ƒ | j ƒ  S(   Ni    (   u	   _StringIOu   _formatu   getvalue(   u   selfu   objectu   sio(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   pformat‹   s    	u   PrettyPrinter.pformatc             C   s   |  j  | i  d d ƒ d S(   Ni    i   (   u   format(   u   selfu   object(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   isrecursive   s    u   PrettyPrinter.isrecursivec             C   s,   |  j  | i  d d ƒ \ } } } | o+ | S(   Ni    (   u   format(   u   selfu   objectu   su   readableu	   recursive(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu
   isreadable“   s    !u   PrettyPrinter.isreadablec             C   s÷  | d } t  | ƒ } | | k rK | j t | ƒ ƒ d |  _ d |  _ d  S|  j | | | d ƒ } t | ƒ }	 t	 | ƒ |  j
 d | | k }
 | j } |  j rÀ | |  j k rÀ | | ƒ d  S|
 rét |	 d d  ƒ } t |	 t ƒ r”| d ƒ |  j d k r| |  j d d ƒ n  t	 | ƒ } | r†d | | <| |  j } t |	 t ƒ ret | j ƒ  ƒ } n t | j ƒ  d t ƒ} | d \ } } |  j | | | ƒ } | | ƒ | d ƒ |  j | | | t	 | ƒ d | d | | ƒ | d k rox| | d d  … D]g \ } } |  j | | | ƒ } | d	 d | | f ƒ |  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 } n› t |	 t ƒ r\| d ƒ d } ny | sp| | ƒ d  S|	 t k r| d ƒ d
 } n4 | |	 j ƒ | d ƒ d } | t |	 j ƒ d 7} t | d t ƒ} |  j d k rü| |  j d d ƒ n  | r°d | | <| |  j } |  j | d | | | d | | ƒ | d k r™xM | d d  … D]8 } | d d | ƒ |  j | | | | d | | ƒ qZWn  | |  j } | | =n  t |	 t ƒ rØ| d k rØ| d ƒ n  | | ƒ d  Sn  | | ƒ d  S(   Ni   u   __repr__u   {u    u   keyi    u   : i   u   ,
%s%s: u   }u   [u   ]u   (u   )u   ({u   })u   ,
u   ,TF(   u   _idu   writeu
   _recursionu   Trueu
   _recursiveu   Falseu	   _readableu   _repru   _typeu   _lenu   _widthu   _depthu   getattru   Noneu
   issubclassu   dictu   _indent_per_levelu   _OrderedDictu   listu   itemsu   sortedu   _safe_tupleu   _formatu   __repr__u   tupleu   setu	   frozensetu   __name__u   lenu	   _safe_key(   u   selfu   objectu   streamu   indentu	   allowanceu   contextu   levelu   objidu   repu   typu   sepLinesu   writeu   ru   lengthu   itemsu   keyu   entu   endchar(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   _format—   s¨    
		!	







	
	

	




u   PrettyPrinter._formatc             C   sR   |  j  | | j ƒ  |  j | ƒ \ } } } | s< d |  _ n  | rN d |  _ n  | S(   NFT(   u   formatu   copyu   _depthu   Falseu	   _readableu   Trueu
   _recursive(   u   selfu   objectu   contextu   levelu   repru   readableu	   recursive(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   _reprõ   s    u   PrettyPrinter._reprc             C   s   t  | | | | ƒ S(   uÈ   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.
        (   u
   _safe_repr(   u   selfu   objectu   contextu	   maxlevelsu   level(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   formatþ   s    u   PrettyPrinter.formatN(   u   __name__u
   __module__u   __qualname__u   Noneu   __init__u   pprintu   pformatu   isrecursiveu
   isreadableu   _formatu   _repru   format(   u
   __locals__(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   PrettyPrinterg   s   ^	c       !      C   s0  t  |  ƒ } | t k rd t j k r: t |  ƒ d d f Sd |  k rh d |  k rh d } i d d 6} n d } i d d 6} | j } t ƒ  } | j	 }	 xJ |  D]B }
 |
 j
 ƒ  r¼ |	 |
 ƒ q |	 | |
 t |
 ƒ d d … ƒ ƒ q Wd | | j ƒ  | f d d f St | d d  ƒ } t | t ƒ r†| t j k r†|  s=d St |  ƒ } | rn| | k rnd
 d | | k f S| | k rt |  ƒ d d f Sd | | <d } d } g  } | j } | d 7} t } t |  j ƒ  d t ƒ} x‹ | D]ƒ \ } } | | | | | ƒ \ } } } | | | | | ƒ \ } } } | d | | f ƒ | oL| oL| } | s[| rád } qáqáW| | =d t | ƒ | | f St | t ƒ r¤| t j k sÂt | t ƒ r| t j k rt | t ƒ rä|  sÛd Sd } n+ t |  ƒ d k rÿd } n |  s	d Sd } t |  ƒ } | rD| | k rD| d d | | k f S| | k rct |  ƒ d d f Sd | | <d } d } g  } | j } | d 7} xT |  D]L } t | | | | ƒ \ } } } | | ƒ | sÖd } n  | r™d } q™q™W| | =| t | ƒ | | f St |  ƒ }  |  |  o)|  j d ƒ d f S(   Nu   localeu   'u   "u   \"u   \'i   u   %s%s%su   __repr__u   {}u   {...}u   keyu   %s: %su   {%s}u   []u   [%s]u   (%s,)u   ()u   (%s)u   ...u   <TFiÿÿÿÿ(   u   {}TF(   u   []TF(   u   ()TF(   u   _typeu   stru   _sysu   modulesu   repru   Trueu   Falseu   getu	   _StringIOu   writeu   isalphau   getvalueu   getattru   Noneu
   issubclassu   dictu   __repr__u   _idu
   _recursionu   appendu
   _safe_repru   sortedu   itemsu   _safe_tupleu
   _commajoinu   listu   tupleu   _lenu
   startswith(!   u   objectu   contextu	   maxlevelsu   levelu   typu   closureu   quotesu   qgetu   siou   writeu   charu   ru   objidu   readableu	   recursiveu
   componentsu   appendu   saferepru   itemsu   ku   vu   krepru	   kreadableu   krecuru   vrepru	   vreadableu   vrecuru   formatu   ou   orepru	   oreadableu   orecuru   rep(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu
   _safe_repr  s˜    			' 
	
		
	

	u
   _safe_reprc             C   s   d t  |  ƒ j t |  ƒ f S(   Nu   <Recursion on %s with id=%s>(   u   _typeu   __name__u   _id(   u   object(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu
   _recursion]  s    u
   _recursionc             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  ƒ  } t d | | ƒ t d | | ƒ d  S(   Ni    u   stringi   i   i   i   i   i   i   i   i † u   _safe_repr:u   pformat:(   i   i   (   u   timeu   Noneu   PrettyPrinteru
   _safe_repru   pformatu   print(   u   objectu   timeu   pu   t1u   t2u   t3(    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu
   _perfcheckb  s    0	u
   _perfchecku   __main__(   u   __doc__u   sysu   _sysu   collectionsu   OrderedDictu   _OrderedDictu   iou   StringIOu	   _StringIOu   __all__u   joinu
   _commajoinu   idu   _idu   lenu   _lenu   typeu   _typeu   Noneu   pprintu   pformatu   saferepru
   isreadableu   isrecursiveu	   _safe_keyu   _safe_tupleu   PrettyPrinteru
   _safe_repru
   _recursionu
   _perfchecku   __name__(    (    (    u+   /opt/alt/python33/lib64/python3.3/pprint.pyu   <module>#   s,   		¡U