
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 |  q } | Vt  j j |   rK t  j |   t  j | j |   t  j	 |  d  y | j
   Wn t k
 r Yn XWd  QRXd  S)Ndiri  )ospathdirnametempfileZNamedTemporaryFileexistsunlinkrenamenamechmodcloseOSError)dest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