
    1Vhs                         d dl mZ d Zd Zy)    )OrderedDictc                 .    | d   d   xs 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keys     P/home/dcms/DCMS/lib/python3.12/site-packages/tensorboard/_vendor/bleach/utils.py	_attr_keyr      s(     71:d1gaj
(CJ    c                     | s| S t        t        | j                         t              D cg c]	  \  }}||f c}}      S c c}}w )zBTakes a dict of attributes (or None) and returns them alphabetized)r	   )r   sorteditemsr   )attrskvs      r
   alphabetize_attributesr      s=    "5;;=i@ADAq!QA As   A
N)collectionsr   r   r   r   r   r
   <module>r      s    #	r   