B
    °F.\­  ã               @   sb   d dl mZmZmZ d dlZyd dlZW n ek
r@   dZY nX dadd„ Z	dd„ Z
dd	„ ZdS )
é    )Úprint_functionÚdivisionÚabsolute_importNFc               C   s   t t ¡ ƒtjd< dS )z[
    Enable setting the process title on this process' children and
    grandchildren.
    ÚDASK_PARENTN)ÚstrÚosÚgetpidÚenviron© r
   r
   ú4lib/python3.7/site-packages/distributed/proctitle.pyÚenable_proctitle_on_children   s    r   c               C   s   da dS )z;
    Enable setting the process title on this process.
    TN)Ú_enabledr
   r
   r
   r   Úenable_proctitle_on_current   s    r   c             C   sZ   t dkrdS t}|sHyttj dd¡ƒt ¡ k}W n tk
rF   Y nX |rVt  | ¡ dS )zY
    Change this process' title, as displayed in various utilities
    such as `ps`.
    Nr   Ú )	Úsetproctitle_modr   Úintr   r	   Úgetr   Ú
ValueErrorÚsetproctitle)ÚtitleZenabledr
   r
   r   r      s    r   )Z
__future__r   r   r   r   r   r   ÚImportErrorr   r   r   r
   r
   r
   r   Ú<module>   s   
