
    Ph                     
   d Z eZddlmZ ddlmZ ddlmZ ddl	Z	ddl
Z
 ee      ZdgZe
j                  redgz  Z ee e       e ee              ej                           e
j                  reZ G d	 de      ZeZd
ad Zy)z
In order to detect a filehandle that's been closed, our only clue may be
the operating system returning the same filehandle in response to some
other  operation.

The builtins 'file' and 'open' are patched to collaborate with the
notify_opened protocol.
    )hubs)hub)slurp_propertiesNopenfile)ignoresrckeysc                        e Zd Z fdZ xZS )r   c                 r    t        t        | 
  |i | t        j                  | j                                y )N)superr   __init__r   notify_openedfileno)selfargskwargs	__class__s      aC:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\eventlet/green/builtin.pyr   zfile.__init__    s+    $&77t{{}-    )__name__
__module____qualname__r   __classcell__)r   s   @r   r   r      s    	. 	.r   Fc                  v    t        | i |}t        s'dat        j                  |j	                                da|S )NTF)__original_open	__openingr   r   r   )r   r   results      r   r   r   )   s9    d-f-F 	6==?+	Mr   )__doc____builtins__builtins_origeventletr   eventlet.hubsr   eventlet.patcherr   syssixdir__all____patched__PY2globalsget_hubr   __original_filer   r   r    r   r   <module>r.      s       - 
 

m
h77F8K 	#S-?A 77O. . 	
r   