ó
O'^c           @@  sú  d  d l  m Z d  d l Z d  d l Z d  d l Z d d l m Z e j d k r¸ y d  d l Z Wqž e	 k
 r´ y d  d l
 m Z Wqľ e	 e f k
 r° d  d l m Z qľ Xqž Xn d Z e j d k rÝ e e Z Z n e e Z Z e e d
  r e j Z e rd   Z q)d   Z n	 d   Z e j d  d k rEe Z n e Z d e f d     YZ y e j Z Wn e k
 rd   Z n Xd   Z e j d k r¸d   Z d   Z n> d  d l m  Z  d  d l! m! Z! m" Z" m# Z# d   Z d   Z d S(   i    (   t   absolute_importNi   (   t   ranget   win32(   R   i   i   i   t   writec         C@  s   t  |  | |  S(   N(   t	   __write__(   t   fdt   buft   offset(    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyt   send_offset   s    c         C@  s   t  |  t | |   S(   N(   R   t   buf_t(   R   R   R   (    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyR   $   s    c         C@  s   t  d   d  S(   NR   (   t   NotImplementedError(   R   R   R   (    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyR   )   s    i   t   bytesc           B@  s   e  Z d    Z RS(   c         G@  s7   t  |  d k r- t | d  j | d   St |   S(   Ni   i    (   t   lent   _bytest   encode(   t   clst   args(    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyt   __new__6   s    (   t   __name__t
   __module__R   (    (    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyR   4   s   c         C@  sc   x\ t  t |  |   D]E } y t j |  Wq t k
 rZ } | j t j k r[   q[ q Xq Wd  S(   N(   t   reversedR   t   ost   closet   OSErrort   errnot   EBADF(   t   fd_lowt   fd_highR   t   exc(    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyt
   closerange?   s    c         C@  sm   y |  j  SWn[ t k
 rh y6 t |  j t  rP t |  j  d k rP |  j d SWqi t k
 rd qi Xn Xd S(   sV   :exc:`socket.error` and :exc:`IOError` first got
    the ``.errno`` attribute in Py2.7i   i    (   R   t   AttributeErrort
   isinstanceR   t   tupleR   (   R   (    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyt	   get_errnoH   s    'c         C@  s   t  d   d  S(   Ns$   setblocking not implemented on win32(   R
   (   t   handlet   blocking(    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyt   setblockingY   s    c         C@  s   t  d   d  S(   Ns#   isblocking not implemented on win32(   R
   (   R"   (    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyt
   isblocking\   s    (   t
   O_NONBLOCK(   t   fcntlt   F_GETFLt   F_SETFLc         C@  s   t  |  t  t @S(   N(   R'   R(   R&   (   R"   (    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyR%   c   s    c         C@  s;   t  |  t d  } t  |  t | r, | t @n | t B d  S(   Ni    (   R'   R(   R)   R&   (   R"   R#   t   flags(    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyR$   f   s    (   i   i   i   ($   t
   __future__R    R   R   t   syst   fiveR   t   platformt   _winapit   ImportErrort	   _billiardR   R   t   _multiprocessingt   Nonet   version_infot
   memoryviewt   TrueR	   t   is_new_buffert   buffert   Falset   hasattrR   R   R   R   R   R   R!   R$   R%   R&   R'   R(   R)   (    (    (    s1   /tmp/pip-unpacked-wheel-40MfcW/billiard/compat.pyt   <module>   sL   							