Current File : //lib/python2.7/site-packages/pip/_vendor/html5lib/utils.pyc |
�
r2Wc @` s d d l m Z m Z m Z d d l m Z d d l m Z y d d l j j
Z Wn# e k
rw d d l
j j Z n Xd d d d d d
g Z yC e d � Z e e e � s� e d � Z e e e � s� t � n Wn
e Z n Xe Z d
e f d � � YZ d � Z d � Z d � Z d S( i ( t absolute_importt divisiont unicode_literals( t
ModuleType( t text_typeNu
default_etreeu MethodDispatcheru isSurrogatePairu surrogatePairToCodepointu moduleFactoryFactoryu supports_lone_surrogatesu "\uD800"u u"\uD800"t MethodDispatcherc B` s# e Z d Z d d � Z d � Z RS( up Dict 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.
c C` s� g } xl | D]d \ } } t | � t t t t f k r^ x7 | D] } | j | | f � q>