ó
ˆwÛjc           @   s£   d  Z  d d l Z d Z d d d „  ƒ  YZ d d d „  ƒ  YZ d d d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d d „ Z	 e
 d k rŸ e	 ƒ  n  d S(   s  Generic output formatting.

Formatter objects transform an abstract flow of formatting events into
specific output events on writer objects. Formatters manage several stack
structures to allow various properties of a writer object to be changed and
restored; writers need not be able to handle relative changes nor any sort
of ``change back'' operation. Specific writer properties which may be
controlled via formatter objects are horizontal alignment, font, and left
margin indentations. A mechanism is provided which supports providing
arbitrary, non-exclusive style settings to a writer as well. Additional
interfaces facilitate formatting events which are not reversible, such as
paragraph separation.

Writer objects encapsulate device interfaces. Abstract devices, such as
file formats, are supported as well as physical devices. The provided
implementations all work with abstract devices. The interface makes
available mechanisms for setting the properties which formatter objects
manage and inserting data into the output.
iÿÿÿÿNt   NullFormatterc           B   s¼   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z d d „ Z d „  Z	 d „  Z
 d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d d „ Z d d „ Z RS(   s=  A formatter which does nothing.

    If the writer parameter is omitted, a NullWriter instance is created.
    No methods of the writer are called by NullFormatter instances.

    Implementations should inherit from this class if implementing a writer
    interface but don't need to inherit any implementation.

    c         C   s%   | d  k r t ƒ  } n  | |  _ d  S(   N(   t   Nonet
   NullWritert   writer(   t   selfR   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   __init__&   s    c         C   s   d  S(   N(    (   R   t	   blankline(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   end_paragraph*   t    c         C   s   d  S(   N(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   add_line_break+   R   c         O   s   d  S(   N(    (   R   t   argst   kw(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   add_hor_rule,   R   c         C   s   d  S(   N(    (   R   t   formatt   counterR   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   add_label_data-   R   c         C   s   d  S(   N(    (   R   t   data(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   add_flowing_data.   R   c         C   s   d  S(   N(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   add_literal_data/   R   c         C   s   d  S(   N(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   flush_softspace0   R   c         C   s   d  S(   N(    (   R   t   align(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   push_alignment1   R   c         C   s   d  S(   N(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   pop_alignment2   R   c         C   s   d  S(   N(    (   R   t   x(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt	   push_font3   R   c         C   s   d  S(   N(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   pop_font4   R   c         C   s   d  S(   N(    (   R   t   margin(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   push_margin5   R   c         C   s   d  S(   N(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt
   pop_margin6   R   c         C   s   d  S(   N(    (   R   t   spacing(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   set_spacing7   R   c         G   s   d  S(   N(    (   R   t   styles(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt
   push_style8   R   i   c         C   s   d  S(   N(    (   R   t   n(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt	   pop_style9   R   c         C   s   d  S(   N(    (   R   t   flag(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   assert_line_data:   R   N(   t   __name__t
   __module__t   __doc__R   R   R   R	   R   R   R   R   R   R   R   R   R   R   R   R   R    R"   R$   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR       s&   															t   AbstractFormatterc           B   sÔ   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d d „ Z d „  Z	 d „  Z
 d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d d „ Z d d „ Z RS(   sê   The standard formatter.

    This implementation has demonstrated wide applicability to many writers,
    and may be used directly in most circumstances.  It has been used to
    implement a full-featured World Wide Web browser.

    c         C   sy   | |  _  d  |  _ g  |  _ g  |  _ g  |  _ d  |  _ g  |  _ d |  _ d |  _	 d |  _
 d |  _ d |  _ d |  _ d  S(   Ni   i    (   R   R   R   t   align_stackt
   font_stackt   margin_stackR   t   style_stackt   nospacet	   softspacet   para_endt   parskipt
   hard_breakt
   have_label(   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   K   s    												c         C   s‹   |  j  s" |  j j ƒ  d |  _ n  |  j | k  rg |  j rg |  j j | |  j ƒ | |  _ d |  _ n  d |  _  |  _ |  _ d |  _ d  S(   Ni    i   (	   R1   R   t   send_line_breakR2   R0   t   send_paragraphR-   R/   R.   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   Z   s    		c         C   sO   |  j  p |  j s2 |  j j ƒ  d |  _ |  _ n  d |  _  |  _ d |  _ d  S(   Ni    i   (   R1   R/   R   R3   R2   R0   R-   R.   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR	   e   s
    c         O   s^   |  j  s |  j j ƒ  n  |  j j | | Ž  d |  _  |  _ d |  _ |  _ |  _ |  _ d  S(   Ni   i    (	   R1   R   R3   t   send_hor_ruleR-   R2   R/   R.   R0   (   R   R
   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   l   s
    	c         C   s»   |  j  s |  j r# |  j j ƒ  n  |  j sK |  j j | rA d pD d ƒ n  t | t ƒ ry |  j j |  j	 | | ƒ ƒ n |  j j | ƒ d |  _
 |  _  |  _ |  _ d |  _ |  _ d  S(   Ni   i    (   R2   R1   R   R3   R/   R4   t
   isinstancet   strt   send_label_datat   format_counterR-   R.   R0   (   R   R   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   s   s    	c         C   sª   d } x� | D]• } | d k r0 | d | } q | d k rd | d k r¢ | |  j  | | ƒ } q¢ q | d k r˜ | d k r¢ | |  j | | ƒ } q¢ q | | } q W| S(   NR   t   1s   %dt   aAi    t   iI(   t   format_lettert   format_roman(   R   R   R   t   labelt   c(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR9      s    c         C   sV   d } xI | d k rQ t  | d d ƒ \ } } t t | ƒ | ƒ } | | } q	 W| S(   NR   i    i   i   (   t   divmodt   chrt   ord(   R   t   caseR   R?   R   t   s(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR=   Ž   s    c   	      C   s  d d d d g } d d d g } d \ } } xÂ | d	 k rñ t  | d
 ƒ \ } } | d k rz | | | | d | } nj | d k rŸ | | | | | } nE | d k rÂ | | } | d } n d } | | | | } | | } | d } q0 W| d k r| j ƒ  S| S(   Nt   iR   R@   t   mt   vt   lt   dR   i    i
   i	   i   i   i   t   I(   R   i    (   RA   t   upper(	   R   RD   R   t   onest   fivesR?   t   indexR   RE   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR>   ™   s&    


c         C   så   | s
 d  S| d  j  ƒ  } | d j  ƒ  } d j | j ƒ  ƒ } |  j rS | rS d  S| sb |  j r£ | sŠ |  j s† d |  _ d |  _ n  d  S|  j s£ d | } q£ n  d |  _ |  _ |  _ |  _ |  _ | |  _ |  j	 j
 | ƒ d  S(   Ni   iÿÿÿÿt    i    (   t   isspacet   joint   splitR-   R.   R0   R1   R/   R2   R   t   send_flowing_data(   R   R   t   prespacet	   postspace(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   ±   s$     			%	c         C   sr   | s
 d  S|  j  r& |  j j d ƒ n  | d d k |  _ d |  _ |  _ |  _  |  _ |  _ |  j j | ƒ d  S(   NRP   iÿÿÿÿs   
i    (	   R.   R   RT   R1   R-   R/   R0   R2   t   send_literal_data(   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   Å   s     	%c         C   sN   |  j  rJ d |  _ |  _ |  _ |  _ |  _  d |  _ |  j j d ƒ n  d  S(   Ni    i   RP   (   R.   R1   R/   R0   R2   R-   R   RT   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   Î   s    	%	c         C   sX   | rA | |  j  k rA |  j j | ƒ | |  _  |  j j | ƒ n |  j j |  j  ƒ d  S(   N(   R   R   t   new_alignmentR)   t   append(   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   Õ   s
    	c         C   sc   |  j  r |  j  d =n  |  j  rF |  j  d |  _ } |  j j | ƒ n d  |  _ |  j j d  ƒ d  S(   Niÿÿÿÿ(   R)   R   R   RX   R   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   Ý   s    			c   
      C   sý   | \ } } } } |  j  rN d |  _ |  _ |  _  d |  _ |  j j d ƒ n  |  j rÇ |  j d \ } } } }	 | t k r… | } n  | t k rš | } n  | t k r¯ | } n  | t k rÇ |	 } qÇ n  | | | | f } |  j j | ƒ |  j j	 | ƒ d  S(   Ni    i   RP   iÿÿÿÿ(
   R.   R1   R/   R-   R   RT   R*   t   AS_ISRY   t   new_font(
   R   t   fontt   sizeRF   t   bt   ttt   csizet   cit   cbt   ctt(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   ç   s$    			 	 	 	 c         C   sI   |  j  r |  j  d =n  |  j  r/ |  j  d } n d  } |  j j | ƒ d  S(   Niÿÿÿÿ(   R*   R   R   R[   (   R   R\   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   ÷   s    		c         C   sY   |  j  j | ƒ t d  |  j  ƒ } | r< | r< | d } n  |  j j | t | ƒ ƒ d  S(   Niÿÿÿÿ(   R+   RY   t   filterR   R   t
   new_margint   len(   R   R   t   fstack(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR      s
    c         C   s^   |  j  r |  j  d =n  t d  |  j  ƒ } | r; | d } n d  } |  j j | t | ƒ ƒ d  S(   Niÿÿÿÿ(   R+   Rd   R   R   Re   Rf   (   R   Rg   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR     s    	c         C   s   | |  _  |  j j | ƒ d  S(   N(   R   R   t   new_spacing(   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR     s    	c         G   sz   |  j  r< d |  _ |  _ |  _  d |  _ |  j j d ƒ n  x | D] } |  j j | ƒ qC W|  j j t	 |  j ƒ ƒ d  S(   Ni    i   RP   (
   R.   R1   R/   R-   R   RT   R,   RY   t
   new_stylest   tuple(   R   R   t   style(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR      s    		i   c         C   s(   |  j  | 3|  j j t |  j  ƒ ƒ d  S(   N(   R,   R   Ri   Rj   (   R   R!   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR"     s    c         C   s,   | |  _  |  _ d |  _ |  _ |  _ d  S(   Ni    (   R-   R1   R/   R0   R2   (   R   R#   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR$   "  s    N(   R%   R&   R'   R   R   R	   R   R   R   R9   R=   R>   R   R   R   R   R   R   R   R   R   R   R    R"   R$   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR(   =   s,   													
					
			R   c           B   sƒ   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z RS(   s  Minimal writer interface to use in testing & inheritance.

    A writer which only provides the interface definition; no actions are
    taken on any methods.  This should be the base class for all writers
    which do not need to inherit any implementation methods.

    c         C   s   d  S(   N(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   /  R   c         C   s   d  S(   N(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   flush0  R   c         C   s   d  S(   N(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRX   1  R   c         C   s   d  S(   N(    (   R   R\   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR[   2  R   c         C   s   d  S(   N(    (   R   R   t   level(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRe   3  R   c         C   s   d  S(   N(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRh   4  R   c         C   s   d  S(   N(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRi   5  R   c         C   s   d  S(   N(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR4   6  R   c         C   s   d  S(   N(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR3   7  R   c         O   s   d  S(   N(    (   R   R
   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR5   8  R   c         C   s   d  S(   N(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR8   9  R   c         C   s   d  S(   N(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRT   :  R   c         C   s   d  S(   N(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRW   ;  R   (   R%   R&   R'   R   Rl   RX   R[   Re   Rh   Ri   R4   R3   R5   R8   RT   RW   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   '  s   												t   AbstractWriterc           B   sq   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z RS(   s°   A writer which can be used in debugging formatters, but not much else.

    Each method simply announces itself by printing its name and
    arguments on standard output.

    c         C   s   d | f GHd  S(   Ns   new_alignment(%r)(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRX   F  s    c         C   s   d | f GHd  S(   Ns   new_font(%r)(    (   R   R\   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR[   I  s    c         C   s   d | | f GHd  S(   Ns   new_margin(%r, %d)(    (   R   R   Rm   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRe   L  s    c         C   s   d | f GHd  S(   Ns   new_spacing(%r)(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRh   O  s    c         C   s   d | f GHd  S(   Ns   new_styles(%r)(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRi   R  s    c         C   s   d | f GHd  S(   Ns   send_paragraph(%r)(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR4   U  s    c         C   s	   d GHd  S(   Ns   send_line_break()(    (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR3   X  s    c         O   s	   d GHd  S(   Ns   send_hor_rule()(    (   R   R
   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR5   [  s    c         C   s   d | f GHd  S(   Ns   send_label_data(%r)(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR8   ^  s    c         C   s   d | f GHd  S(   Ns   send_flowing_data(%r)(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRT   a  s    c         C   s   d | f GHd  S(   Ns   send_literal_data(%r)(    (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRW   d  s    (   R%   R&   R'   RX   R[   Re   Rh   Ri   R4   R3   R5   R8   RT   RW   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRn   >  s   										t
   DumbWriterc           B   sS   e  Z d  Z d	 d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(
   s;  Simple writer class which writes output on the file object passed in
    as the file parameter or, if file is omitted, on standard output.  The
    output is simply word-wrapped to the number of columns specified by
    the maxcol parameter.  This class is suitable for reflowing a sequence
    of paragraphs.

    iH   c         C   s6   | p t  j |  _ | |  _ t j |  ƒ |  j ƒ  d  S(   N(   t   syst   stdoutt   filet   maxcolR   R   t   reset(   R   Rr   Rs   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR   q  s    	c         C   s   d |  _  d |  _ d  S(   Ni    (   t   colt   atbreak(   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRt   w  s    	c         C   s*   |  j  j d | ƒ d |  _ d |  _ d  S(   Ns   
i    (   Rr   t   writeRu   Rv   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR4   {  s    	c         C   s&   |  j  j d ƒ d |  _ d |  _ d  S(   Ns   
i    (   Rr   Rw   Ru   Rv   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR3   €  s    	c         O   sM   |  j  j d ƒ |  j  j d |  j ƒ |  j  j d ƒ d |  _ d |  _ d  S(   Ns   
t   -i    (   Rr   Rw   Rs   Ru   Rv   (   R   R
   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyR5   …  s
    	c         C   st   |  j  j | ƒ | j d ƒ } | d k rE d |  _ | | d } n  | j ƒ  } |  j t | ƒ |  _ d |  _ d  S(   Ns   
i    i   (   Rr   Rw   t   rfindRu   t
   expandtabsRf   Rv   (   R   R   RF   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRW   Œ  s    	c         C   sÞ   | s
 d  S|  j  p  | d j ƒ  } |  j } |  j } |  j j } xz | j ƒ  D]l } | rš | t | ƒ | k rƒ | d ƒ d } qš | d ƒ | d } n  | | ƒ | t | ƒ } d } qN W| |  _ | d j ƒ  |  _  d  S(   Ni    s   
RP   i   iÿÿÿÿ(   Rv   RQ   Ru   Rs   Rr   Rw   RS   Rf   (   R   R   Rv   Ru   Rs   Rw   t   word(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRT   –  s$     		
	


	N(   R%   R&   R'   R   R   Rt   R4   R3   R5   RW   RT   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyRo   h  s   					
c         C   s§   t  ƒ  } t | ƒ } |  d  k	 r0 t |  ƒ } n, t j d rS t t j d ƒ } n	 t j } x7 | D]/ } | d k r… | j d ƒ qc | j | ƒ qc W| j d ƒ d  S(   Ni   s   
i    (	   Ro   R(   R   t   openRp   t   argvt   stdinR   R   (   Rr   t   wt   ft   fpt   line(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   test«  s    		t   __main__(    (    (    (   R'   Rp   R   RZ   R    R(   R   Rn   Ro   Rƒ   R%   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/formatter.pyt   <module>   s   "ê*C