a
    ¨ˆc×  ã                   @   s   d Z g dfdd„ZdS )zS
A re-usable method for calculating a unique name given a list of existing
names.

z%s_%sc                 C   s*   d}| }||v r&|| |f }|d7 }q|S )a  
    Return a name, unique within a context, based on the specified name.

    base: the desired base name of the generated unique name.
    existing: a sequence of the existing names to avoid returning.
    format: a formatting specification for how the name is made unique.

    é   é   © )ÚbaseÚexistingÚformatÚcountÚnamer   r   ú^/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/apptools/naming/unique_name.pyÚmake_unique_name   s    

r
   N)Ú__doc__r
   r   r   r   r	   Ú<module>   s   