
l-Ud                 @   sI   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 |  t } | Vt  j j |   rN t  j |   n  t  j | j |   t  j	 |  d  y | j
   Wn t k
 r Yn XWd  QXd  S)Ndiri  )ospathdirnametempfileZNamedTemporaryFileexistsunlinkrenamenamechmodcloseOSError)destZloct r   ./extra/hacker/creation/stories/code/becomer.pybecome   s      r   )r   Z
contextlibr   ZshutilZcontextmanagerr   r   r   r   r   <module>   s   0