B
    u9aÌ  ã               @   sž   d Z ddlZddlZddlZg ZG dd„ dejƒZxfddd„ dfd	ejj	d
fgD ]F\Z
ZZz6eeeƒZe ¡  e e ¡ e ¡ rŽe de
 ¡ W d[X qPW dS )é
   é    Nc               @   s   e Zd Zdd„ Zdd„ ZdS )ÚWorkerc             C   s   t j | ¡ || _|| _d S )N)Ú	threadingÚThreadÚ__init__ÚfunctionÚargs)Úselfr   r   © r
   ú-/usr/lib/python3.7/threaded_import_hangers.pyr      s    zWorker.__init__c             C   s   | j | jŽ  d S )N)r   r   )r	   r
   r
   r   Úrun   s    z
Worker.runN)Ú__name__Ú
__module__Ú__qualname__r   r   r
   r
   r
   r   r      s   r   ztempfile.TemporaryFilec               C   s   t  ¡  ¡ S )N)ÚtempfileZTemporaryFileÚcloser
   r
   r
   r   Ú<lambda>    ó    r   r
   zos.path.abspath)Ú.z%s appeared to hang)ZTIMEOUTr   r   Zos.pathÚosÚerrorsr   r   ÚpathÚabspathÚnameÚfuncr   ÚtÚstartÚjoinZis_aliveÚappendr
   r
   r
   r   Ú<module>   s   	

