ó â\e[c@`sFddlmZmZmZddlmZdefd„ƒYZdS(i(tabsolute_importtdivisiontunicode_literals(tMappingtTriecB`s5eZdZdd„Zd„Zd„Zd„ZRS(uAbstract base class for triesc`s?tt|ƒjƒ}ˆdkr+t|ƒS‡fd†|DƒS(Nc`s%h|]}|jˆƒr|’qS((t startswith(t.0tx(tprefix(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/_trie/_base.pys s (tsuperRtkeystNonetset(tselfRR ((Rs?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/_trie/_base.pyR s  cC`s.x'|jƒD]}|j|ƒr tSq WtS(N(R RtTruetFalse(R Rtkey((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/_trie/_base.pythas_keys_with_prefixscC`s^||kr|Sx;tdt|ƒdƒD] }|| |kr*|| Sq*Wt|ƒ‚dS(Ni(trangetlentKeyError(R Rti((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/_trie/_base.pytlongest_prefixs    cC`s|j|ƒ}|||fS(N(R(R Rtlprefix((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/_trie/_base.pytlongest_prefix_item#sN(t__name__t __module__t__doc__R R RRR(((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/_trie/_base.pyRs   N(t __future__RRRt collectionsRR(((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/_trie/_base.pyts