ó
MšV]c           @   s<   d  d l  Z  d e f d „  ƒ  YZ d e f d „  ƒ  YZ d S(   iÿÿÿÿNt   FileIOc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s   | |  _  d  S(   N(   t   path(   t   selfR   (    (    s,   lib/python2.7/site-packages/parso/file_io.pyt   __init__   s    c         C   s)   t  |  j d ƒ  } | j ƒ  SWd  QXd  S(   Nt   rb(   t   openR   t   read(   R   t   f(    (    s,   lib/python2.7/site-packages/parso/file_io.pyR      s    c         C   s0   y t  j j |  j ƒ SWn t k
 r+ d SXd S(   sK   
        Returns float - timestamp or None, if path doesn't exist.
        N(   t   osR   t   getmtimet   OSErrort   None(   R   (    (    s,   lib/python2.7/site-packages/parso/file_io.pyt   get_last_modified   s    c         C   s   d |  j  j |  j f S(   Ns   %s(%s)(   t	   __class__t   __name__R   (   R   (    (    s,   lib/python2.7/site-packages/parso/file_io.pyt   __repr__   s    (   R   t
   __module__R   R   R   R   (    (    (    s,   lib/python2.7/site-packages/parso/file_io.pyR       s   			
t   KnownContentFileIOc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s#   t  t |  ƒ j | ƒ | |  _ d  S(   N(   t   superR   R   t   _content(   R   R   t   content(    (    s,   lib/python2.7/site-packages/parso/file_io.pyR      s    c         C   s   |  j  S(   N(   R   (   R   (    (    s,   lib/python2.7/site-packages/parso/file_io.pyR   "   s    (   R   R   R   R   (    (    (    s,   lib/python2.7/site-packages/parso/file_io.pyR      s   	(   R   t   objectR    R   (    (    (    s,   lib/python2.7/site-packages/parso/file_io.pyt   <module>   s   