B
    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| }tj|d^}|V  t j| r6t |  t |j|  t 	| d y|
  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)destZloct r   &/home/creation/stories/code/becomer.pybecome   s    
  r   )r   Z
contextlibr   ZshutilZcontextmanagerr   r   r   r   r   <module>   s    