a
    ¨ˆcþ  ã                   @   s   d d„ Z G dd„ dƒZdS )c                 C   s   |   |¡}| j |¡ dS )Ú N)Z__updater__Ú__dict__Úupdate)ÚselfÚstate© r   ú_/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/apptools/persistence/updater.pyÚ__replacement_setstate__   s    
r   c                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚUpdaterzBAn abstract class to provide functionality common to the updaters.c                 C   s@   t | dƒr8|  |¡}|  |¡}| 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éÿÿÿÿé   )Ú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   