
δΎT  c               @   s    d  Z  Gd d   d e  Z d S(   u7   
A buffer for the input stream from sockets. Iterable.
c             B   sb   |  Ee  Z d  Z d Z d d   Z d d   Z d d   Z d d	   Z d
 d   Z d d   Z	 d S(   u   BufferuE   
    Represents an iterable buffer that returns completed lines.
    c             C   s   d |  _  d  S(   Nu    (   u   buffer(   u   self(    (    u&   /home/sam/Code/Infobot/utils/buffer.pyu   __init__
   s    u   Buffer.__init__c             C   s   |  S(   N(    (   u   self(    (    u&   /home/sam/Code/Infobot/utils/buffer.pyu   __iter__   s    u   Buffer.__iter__c             C   sJ   d |  j  k r t  n. t |  j  j d d   \ } |  _  | j   Sd  S(   Nu   
i   (   u   bufferu   StopIterationu   tupleu   splitu   rstrip(   u   selfu   data(    (    u&   /home/sam/Code/Infobot/utils/buffer.pyu   __next__   s    	$u   Buffer.__next__c             C   s
   |  j    S(   u    Next in Py3K (   u   __next__(   u   self(    (    u&   /home/sam/Code/Infobot/utils/buffer.pyu   next   s    u   Buffer.nextc             C   s   |  j  | 7_  | S(   u    Append data to the buffer (   u   buffer(   u   selfu   data(    (    u&   /home/sam/Code/Infobot/utils/buffer.pyu   append   s    u   Buffer.appendc             C   s   t  |  j  d S(   u    Make pylint shut up N(   u   printu   buffer(   u   self(    (    u&   /home/sam/Code/Infobot/utils/buffer.pyu
   get_buffer#   s    u   Buffer.get_bufferN(
   u   __name__u
   __module__u   __qualname__u   __doc__u   __init__u   __iter__u   __next__u   nextu   appendu
   get_buffer(   u
   __locals__(    (    u&   /home/sam/Code/Infobot/utils/buffer.pyu   Buffer   s   
u   BufferN(   u   __doc__u   objectu   Buffer(    (    (    u&   /home/sam/Code/Infobot/utils/buffer.pyu   <module>   s   