3
AAd]´  ã               @   s   d d„ Z G dd„ dƒZdS )c             C   s   | j |ƒ}| jj|ƒ dS )z
    N)Z__updater__Ú__dict__Úupdate)ÚselfÚstate© r   úx/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/apptools-4.4.0-py3.6.egg/apptools/persistence/updater.pyÚ__replacement_setstate__   s    
r   c               @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚUpdaterzH An abstract class to provide functionality common to the updaters.
    c             C   s@   t | dƒr8| j|ƒ}| j|ƒ}| jj||f||fƒ\}}||fS )zÁ The refactorings dictionary contains mappings between old and new
        module names.  Since we only bump the version number one increment
        there is only one possible answer.
        Úrefactorings)ÚhasattrÚstripr	   Úget)r   ÚmoduleÚnamer   r   r   Ú
get_latest   s
    


zUpdater.get_latestc             C   s$   t |dd … ƒdkr |d d… S |S )Né   é   éÿÿÿÿr   )Úord)r   Ústringr   r   r   r       s    zUpdater.stripN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s   r   N)r   r   r   r   r   r   Ú<module>   s   