U o a@sJddlmZmZmZddlmZddlmZddZGdddej Z d S) )absolute_importdivisionunicode_literals)base) OrderedDictcCs|ddpd|ddfS)zReturn an appropriate key for an attribute for sorting Attributes have a namespace that can be either ``None`` or a string. We can't compare the two because they're different types, so we convert ``None`` to an empty string first. rr)attrr r tC:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-6mt8ur68\pip\_vendor\html5lib\filters\alphabeticalattributes.py _attr_keysr c@seZdZdZddZdS)Filterz$Alphabetizes attributes for elementsccs\tj|D]J}|ddkrPt}t|dtdD]\}}|||<q6||d<|Vq dS)Ntype)StartTagEmptyTagdata)key)rr __iter__rsorteditemsr )selftokenattrsnamevaluer r r rs   zFilter.__iter__N)__name__ __module__ __qualname____doc__rr r r r r sr N) __future__rrrrr collectionsrr r r r r r s