3
l-Ud                 @   s2   d dl Z d dlZd dlZd dlZejdd ZdS )    Nc             c   s   t jj| }tj|d^}|V  t jj| r6t j|  t j|j|  t j	| d y|j
  W n tk
rp   Y nX W d Q R X d S )N)diri  )ospathdirnametempfileZNamedTemporaryFileexistsunlinkrenamenamechmodcloseOSError)destloct r   &/home/creation/stories/code/becomer.pybecome   s    
  r   )r   
contextlibr   Zshutilcontextmanagerr   r   r   r   r   <module>   s    