3
AAd]s  ã               @   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}| }x ||kr(|| |f }|d7 }q
W |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   úw/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/apptools-4.4.0-py3.6.egg/apptools/naming/unique_name.pyÚmake_unique_name   s    

r
   N)Ú__doc__r
   r   r   r   r	   Ú<module>   s   