3
6ßL]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   úA/tmp/pip-install-5sebvq2j/apptools/apptools/naming/unique_name.pyÚmake_unique_name   s    

r
   N)Ú__doc__r
   r   r   r   r	   Ú<module>   s   