ó
Žâ0_c           @   s   d  e  f d     YZ d S(   t   FileProxyMixinc           B   s1  e  Z d  Z e d    Z e d    Z e d    Z e d    Z e d    Z e d    Z	 e d    Z
 e d    Z e d	    Z e d
    Z e d    Z e d    Z e d    Z e d    Z e d    Z e d    Z e d    Z d   Z d   Z d   Z d   Z RS(   sü   
    A mixin class used to forward file methods to an underlaying file
    object.  The internal file object has to be called "file"::

        class FileProxy(FileProxyMixin):
            def __init__(self, file):
                self.file = file
    c         C   s
   |  j  j S(   N(   t   filet   encoding(   t   self(    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyt   <lambda>   t    c         C   s
   |  j  j S(   N(   R   t   fileno(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   flush(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   isatty(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   newlines(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   read(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   readinto(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   readline(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t	   readlines(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   seek(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t	   softspace(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   tell(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   truncate(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t   write(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t
   writelines(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s
   |  j  j S(   N(   R   t
   xreadlines(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      R   c         C   s   |  j  p |  j  j S(   N(   R   t   closed(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR      s    c         C   s0   |  j  r t St |  j d  r, |  j j   St S(   Nt   readable(   R   t   Falset   hasattrR   R   t   True(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR       s
    	c         C   sE   |  j  r t St |  j d  r, |  j j   Sd t |  j d d  k S(   Nt   writablet   wt   modeR   (   R   R   R   R   R   t   getattr(   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR   '   s
    	c         C   s0   |  j  r t St |  j d  r, |  j j   St S(   Nt   seekable(   R   R   R   R   R   R   (   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR   .   s
    	c         C   s   t  |  j  S(   N(   t   iterR   (   R   (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyt   __iter__5   s    (   t   __name__t
   __module__t   __doc__t   propertyR   R   R   R   R	   R
   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R    (    (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyR       s,   			N(   t   objectR    (    (    (    s9   /tmp/pip-unpacked-wheel-BAJOf3/django/core/files/utils.pyt   <module>   R   