ó
¦–Õ\c           @` sf   d  d l  m Z m Z m Z d  d l m Z d d l m Z d e e f d „  ƒ  YZ	 e	 e j
 d <d S(	   i    (   t   print_functiont   divisiont   absolute_import(   t   S3FileSystemi   (   t   coret   DaskS3FileSystemc           B` sP   e  Z d  Z d d d d d d d d „ Z d „  Z d „  Z d „  Z d „  Z RS(   t   /c   	      K` s¬   | d  k	 r0 | d  k	 r' t d ƒ ‚ n  | } n  | d  k	 rI | | d <n  | d  k	 ry | d  k	 rp t d ƒ ‚ n  | } n  | d  k	 r’ | | d <n  t t |  ƒ j |   d  S(   Ns“   S3 storage options got secrets argument collision. Please, use either `key` storage option or password field in URLpath, not both options together.t   keys–   S3 storage options got secrets argument collision. Please, use either `secret` storage option or password field in URLpath, not both options together.t   secret(   t   Nonet   KeyErrort   superR   t   __init__(	   t   selfR   t   usernameR   t   passwordt   patht   hostt   s3t   kwargs(    (    s,   lib/python2.7/site-packages/dask/bytes/s3.pyR      s    		c         C` s   d  S(   N(    (   R   R   (    (    s,   lib/python2.7/site-packages/dask/bytes/s3.pyt   mkdirs"   s    c         C` s   |  j  | ƒ d S(   Nt   ETag(   t   info(   R   R   (    (    s,   lib/python2.7/site-packages/dask/bytes/s3.pyt   ukey%   s    c         C` s   |  j  | ƒ d S(   Nt   Size(   R   (   R   R   (    (    s,   lib/python2.7/site-packages/dask/bytes/s3.pyt   size(   s    c         C` s   d d l  } | j j |  ƒ S(   s#   Get an equivalent pyarrow fileystemi    N(   t   pyarrowt
   filesystemt   S3FSWrapper(   R   t   pa(    (    s,   lib/python2.7/site-packages/dask/bytes/s3.pyt   _get_pyarrow_filesystem+   s    N(	   t   __name__t
   __module__t   sepR	   R   R   R   R   R   (    (    (    s,   lib/python2.7/site-packages/dask/bytes/s3.pyR      s   			R   N(   t
   __future__R    R   R   t   s3fsR   t    R   t   objectR   t   _filesystems(    (    (    s,   lib/python2.7/site-packages/dask/bytes/s3.pyt   <module>   s   )