File: //opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/Console.pyo
�
;�Pc           @   s)   d  d l  Z  d e  j f d �  �  YZ d S(   i����Nt   Consolec           B   s2   e  Z d  Z d d d � Z d d � Z d �  Z RS(   t   -s	   <console>c         C   s,   | |  _  | |  _ t j j |  | | � d  S(   N(   t   stdint   stdoutt   codet   InteractiveConsolet   __init__(   t   selfR   R   t   localst   filename(    (    sF   /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/Console.pyR      s    		t    c         C   sW   |  j  | � |  j j �  } | s+ t � n  | j �  } | |  j k rO t � n | Sd S(   s�   Write a prompt and read a line.
        The returned line does not include the trailing newline.
        When the user enters the EOF key sequence, EOFError is raised.
        N(   t   writeR   t   readlinet   EOFErrort   rstript   EOF_key_sequence(   R   t   promptt   line(    (    sF   /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/Console.pyt	   raw_input   s    
		c         C   s   |  j  j | � d  S(   N(   R   R   (   R   t   data(    (    sF   /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/Console.pyR      s    N(   t   __name__t
   __module__R   t   NoneR   R   R   (    (    (    sF   /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/Console.pyR       s   (   R   R   R    (    (    (    sF   /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/Console.pyt   <module>   s