o
    7?es                     @   s    d dl mZ dd Zdd ZdS )    )OrderedDictc                 C   s    | d d pd| d d f}|S )zReturns appropriate key for sorting attribute names

    Attribute names are a tuple of ``(namespace, name)`` where namespace can be
    ``None`` or a string. These can't be compared in Python 3, so we conver the
    ``None`` to an empty string.

    r        )attrkeyr   r   a/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/tensorboard/_vendor/bleach/utils.py	_attr_key   s   r	   c                 C   s&   | s| S t dd t|  tdD S )zBTakes a dict of attributes (or None) and returns them alphabetizedc                 S   s   g | ]\}}||fqS r   r   ).0kvr   r   r   
<listcomp>   s    z*alphabetize_attributes.<locals>.<listcomp>)r   )r   sorteditemsr	   )attrsr   r   r   alphabetize_attributes   s
   r   N)collectionsr   r	   r   r   r   r   r   <module>   s    