๓
O'^c           @@  sฅ  d  Z  d d l m Z d d l Z e j d d k Z y
 e Z Wn! e k
 rb d d l m Z n Xy d d l	 m
 Z
 Wn! e k
 r d d l
 m
 Z
 n Xy d d l	 m Z Wn! e k
 rา d d l m Z n Xy
 e Z Wn e k
 r๖ e Z n Xe j d. k  rd d l Z e j   Z y d d l Z Wn e k
 rGd Z n Xe d k rๅe d k	 rๅd d	 l m Z e j e d
   Z e j e d  d e Z e j Z e j e _ e j Z e j e _ e j g e _  d   Z! qe d k rme d k	 rmd d l" Z" d Z# d e j$ f d     YZ% e j d d e Z& e& j' Z' e j( e j) e%  g e' _  d   Z! qd d l* m* Z! n  y d d l* m+ Z+ Wn e k
 rญe! Z+ n Xe rd d l, Z, d d l- m. Z. m/ Z/ m0 Z0 m1 Z1 d d l2 m3 Z3 d d l4 m5 Z5 m6 Z6 e7 Z7 e8 Z8 e Z9 e Z: e; Z< e Z= e> Z> e Z? d Z@ d   ZA d   ZB d   ZC d   ZD eE e, d  ZF d d  ZG d  e5 f d!     YZH n๓ d d lI Z, d d l. m. Z. m/ Z/ m0 Z0 m1 Z1 d d" l2 mJ Z7 mK Z8 mL Z3 y d d# lM m5 Z5 Wn! e k
 rd d# l5 m5 Z5 n XeN Z9 eO Z: eN Z= eP Z< eQ Z> e Z? d$ Z@ d%   ZA d&   ZB d'   ZC d(   ZD d d d)  ZF eF d*  e5 Z6 ZH eR d+ d, g  d-  ZS d S(/   s   
    celery.five
    ~~~~~~~~~~~

    Compatibility implementations of features
    only available in newer Python versions.


i    (   t   absolute_importNi   (   t   reload(   t   UserList(   t   UserDictt   Darwin(   t   find_librarys   libSystem.dylibt   CoreServicest	   use_errnoc           C@  s   t  t    d S(   Ngึ&่.>(   t   absolute_to_nanosecondst   mach_absolute_time(    (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyt
   _monotonic<   s    t   Linuxi   t   timespecc           B@  s&   e  Z d  e j f d e j f g Z RS(   t   tv_sect   tv_nsec(   t   __name__t
   __module__t   ctypest   c_longt   _fields_(    (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR   F   s   s
   librt.so.1c          C@  s`   t    }  t t t j |    d k rN t j   } t | t j |    n  |  j	 |  j
 d S(   Ni    gึ&่.>(   R   t   clock_gettimet   CLOCK_MONOTONICR   t   pointert	   get_errnot   OSErrort   ost   strerrorR   R   (   t   tt   errno_(    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR
   R   s
    	(   t   time(   t	   monotonic(   t   Queuet   Emptyt   Fullt	   LifoQueue(   t   zip_longest(   t   StringIOt   BytesIOs   builtins.openc         C@  s
   |  j    S(   N(   t   items(   t   d(    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR&   s   s    c         C@  s
   |  j    S(   N(   t   keys(   R'   (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR(   v   s    c         C@  s
   |  j    S(   N(   t   values(   R'   (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR)   y   s    c         C@  s   |  j  S(   N(   t   __next__(   t   it(    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyt   nextfun|   s    t   execc         C@  s+   | j  | k	 r! | j |   n  |  d  S(   N(   t   __traceback__t   with_traceback(   t   tpt   valuet   tb(    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyt   reraise   s    t
   WhateverIOc           B@  s   e  Z d    Z RS(   c         C@  s2   t  | t  r | j   } n  t j |  |  d  S(   N(   t
   isinstancet   bytest   encodeR$   t   write(   t   selft   data(    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR8      s    (   R   R   R8   (    (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR4      s   (   t   imapt   izipt   izip_longest(   R$   s   __builtin__.openc         C@  s
   |  j    S(   N(   t	   iteritems(   R'   (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR&   ฃ   s    c         C@  s
   |  j    S(   N(   t   iterkeys(   R'   (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR(   ฆ   s    c         C@  s
   |  j    S(   N(   t
   itervalues(   R'   (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR)   ฉ   s    c         C@  s   |  j  S(   N(   t   next(   R+   (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyR,   ฌ   s    c         B@  sc   | d k rB e j d  } | j } | d k r< | j } n  ~ n | d k rW | } n  d d Ud S(   s   Execute code in a namespace.i   s   exec code in globs, locsN(   t   Nonet   syst	   _getframet	   f_globalst   f_locals(   t   codet   globst   locst   frame(    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyt   exec_ฏ   s    		s4   def reraise(tp, value, tb=None): raise tp, value, tbt   __dict__t   __weakref__c         @  s      f d   } | S(   s๚   Class decorator to set metaclass.

    Works with both Python 3 and Python 3 and it does not add
    an extra class in the lookup order like ``six.with_metaclass`` does
    (that is -- it copies the original class instead of using inheritance).

    c         @  s>   t   f d   t t |    D  }   |  j |  j |  S(   Nc         3@  s-   |  ]# \ } } |   k r | | f Vq d  S(   N(    (   t   .0t   keyR1   (   t
   skip_attrs(    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pys	   <genexpr>ส   s    	(   t   dictR&   t   varsR   t	   __bases__(   t   Classt   attrs(   t   TypeRP   (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyt   _clone_with_metaclassษ   s    ((    (   RV   RP   RW   (    (   RV   RP   s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyt   with_metaclassภ   s    	(   i   i   (T   t   __doc__t
   __future__R    RC   t   version_infot   PY3R   t	   NameErrort   impt   collectionsR   t   ImportErrorR   R6   t   bytes_tt   strt   platformt   systemt   SYSTEMR   RB   t   ctypes.utilR   t   CDLLt	   libSystemt   TrueR   R	   t   c_uint64t   restypet   AbsoluteToNanosecondsR   t   argtypesR
   R   R   t	   StructureR   t   librtR   t   c_intt   POINTERR   R   t   builtinst   queueR   R    R!   R"   t	   itertoolsR#   t   ioR$   R%   t   mapt   zipt   stringt   string_tt   intt   long_tt   text_tt   ranget   module_name_tt	   open_fqdnR&   R(   R)   R,   t   getattrRK   R3   R4   t   __builtin__R;   R<   R=   t	   cStringIOt   unicodet
   basestringt   longt   xranget   setRX   (    (    (    s,   /tmp/pip-unpacked-wheel-UAnTfW/kombu/five.pyt   <module>
   sบ   



				
"				"				

