ó r2Wc@`s ddlmZmZmZddlmZddlmZyddlj j Z Wn#e k rwddl j jZ nXddddd d gZy.ed ƒZeeeƒs½ed ƒZnWn eZnXeZd efd„ƒYZd„Zd„Zd„ZdS(i(tabsolute_importtdivisiontunicode_literals(t ModuleType(t text_typeNu default_etreeuMethodDispatcheruisSurrogatePairusurrogatePairToCodepointumoduleFactoryFactoryusupports_lone_surrogatesu"\uD800"u u"\uD800"tMethodDispatchercB`s#eZdZdd„Zd„ZRS(upDict with 2 special properties: On initiation, keys that are lists, sets or tuples are converted to multiple keys so accessing any one of the items in the original list-like object returns the matching value md = MethodDispatcher({("foo", "bar"):"baz"}) md["foo"] == "baz" A default value which can be set through the default attribute. cC`s’g}xl|D]d\}}t|ƒttttfkr^x7|D]}|j||fƒq>Wq |j||fƒq Wtj||ƒd|_ dS(N( ttypetlistttuplet frozensettsettappendtdictt__init__tNonetdefault(tselftitemst _dictEntriestnametvaluetitem((s>/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/utils.pyR 1s cC`stj|||jƒS(N(R tgetR(Rtkey((s>/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/utils.pyt __getitem__?s((t__name__t __module__t__doc__R R(((s>/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/utils.pyR$s  cC`sht|ƒdkogt|dƒdkogt|dƒdkogt|dƒdkogt|dƒdkS(NiiiØiÿÛiiÜiÿß(tlentord(tdata((s>/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/utils.pytisSurrogatePairFs,cC`s2dt|dƒddt|dƒd}|S(NiiiØiiiÜ(R(Rtchar_val((s>/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/utils.pytsurrogatePairToCodepointLsc`si‰‡‡fd†}|S(Nc`s‰ttjtdƒƒr(d|j}n d|j}|ˆkrIˆ|St|ƒ}ˆ|||Ž}|jj|ƒ|ˆ|<|SdS(Nuu _%s_factorys _%s_factory(t isinstanceRRRt__dict__tupdate(t baseModuletargstkwargsRtmodtobjs(tfactoryt moduleCache(s>/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/utils.pyt moduleFactoryXs    ((R*R,((R*R+s>/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/utils.pytmoduleFactoryFactoryUs(t __future__RRRttypesRtpip._vendor.sixRtxml.etree.cElementTreetetreet cElementTreet default_etreet ImportErrortxml.etree.ElementTreet ElementTreet__all__tevalt_xR"tFalsetsupports_lone_surrogatestTrueR RRR!R-(((s>/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/utils.pyts*      "