ó
;ŖPc           @   s=   d  d l  Z  d  d l Z d  d l Z d  d l Z d   Z d S(   i’’’’Nc         C   s»   t  j j |   s d St  j j |  r@ t j d t   IJd St  j j t  j j |   sz t  j t  j j |   n  t  j	 t  j j |  t
 j t
 j Bt
 j B t j |  |  d S(   sļ   
    keyring 0.8 changes the default location for storage of
    file-based keyring locations. This function is invoked to move
    files stored in the old location to the new location.

    TODO: remove this function for keyring 1.0.
    Ns{   Password file found in legacy location
  %(old_location)s
and new location
  %(new_location)s
Old location will be ignored.(   t   ost   patht   existst   syst   stderrt   varst   isdirt   dirnamet   makedirst   chmodt   statt   S_IWRITEt   S_IREADt   S_IEXECt   shutilt   move(   t   old_locationt   new_location(    (    s;   /usr/lib/python2.7/dist-packages/keyring/util/loc_compat.pyt   relocate_file   s    

(   R    R   R
   R   R   (    (    (    s;   /usr/lib/python2.7/dist-packages/keyring/util/loc_compat.pyt   <module>   s   