
    Ph%                         d dl Z d dlZd dlZd dlZd dlmZ  e       Zd Zej                  d    dk  rej                  sd dlmZ nd Zej                  d    dk  rddZnddZej                  dd	 d
k(  Zd Zy)    N)	greenletsc                     	 | j                   | j                   S 	 	 | j                  d   S # t        $ r Y w xY w# t        $ r Y yw xY w)ah   Get the error code out of socket.error objects.
    socket.error in <2.5 does not have errno attribute
    socket.error in 3.x does not allow indexing access
    e.args[0] works for all.
    There are cases when args[0] is not errno.
    i.e. http://bugs.python.org/issue6471
    Maybe there are cases when errno is set, but it is not the first argument?
    Nr   )errnoAttributeErrorargs
IndexError)excs    dC:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\eventlet/support/__init__.py	get_errnor      sZ    99 99 !xx{    s   + : 	77	AA   )	exc_clearc                       y)zNo-op In py3k.
        Exception information is not visible outside of except statements.
        sys.exc_clear became obsolete and removed.N r       r
   clear_sys_exc_infor   $   s     	r   c                     | S Nr   bencodings     r
   bytes_to_strr   +   s    r   c                 $    | j                  |      S r   )decoder   s     r
   r   r   .   s    xx!!r      )r   r   c                 V    d }dj                   ||        ||            fd}|S )Nc                     d| vrd| z   S | S )N.z	eventlet.r   )ss    r
   _resolvez!wrap_deprecated.<locals>._resolve5   s     #1{1}3!3r   z{old} is deprecated and will be removed in next version. Use {new} instead.
Autoupgrade: fgrep -rl '{old}' . |xargs -t sed --in-place='' -e 's/{old}/{new}/'
)oldnewc                      d }t        j                         r- G d d       } j                  |_         j                  |_        t	        j
                          fd       }|	||_        |S |S )Nc                       e Zd Zy)/wrap_deprecated.<locals>.wrapper.<locals>.klassN)__name__
__module____qualname__r   r   r
   klassr$   ?   s    r   r(   c                  L    t        j                  t        d        | i |S )N   )
stacklevel)warningswarnDeprecationWarning)akwbasemsgs     r
   wrappedz1wrap_deprecated.<locals>.wrapper.<locals>.wrappedD   s"    MM#1a@>b>!r   )inspectisclassr%   r&   	functoolswraps__init__)r1   r(   r3   r2   s   `  r
   wrapperz wrap_deprecated.<locals>.wrapper<   sk    ??4  !]]EN#E			" 
	" $ENLr   )format)r    r!   r   r9   r2   s       @r
   wrap_deprecatedr;   4   s6    4 Fx}(3-F0 
$ Nr   )ascii)r4   r6   sysr,   eventlet.supportr   object_MISSINGr   version_infopreserves_excinfor   r   r   PY33r;   r   r   r
   <module>rD      s      
  & 8* A9#>#>3 A" v%r   