abc@`sddlmZmZmZddlmZddlmZmZmZm Z m Z ddlm Z m Z m Z mZmZmZddlmZddlmZmZd ejfd YZd S( i(tabsolute_importtdivisiontunicode_literals(tQName(tSTARTtENDt XML_NAMESPACEtDOCTYPEtTEXT(tSTART_NStEND_NSt START_CDATAt END_CDATAtPItCOMMENTi(tbasei(t voidElementst namespacest TreeWalkercB`seZdZdZRS(cc`sd}xH|jD]=}|dk rGx"|j||D] }|Vq5Wn|}qW|dk rx"|j|dD] }|VqpWndS(N(tNonettreettokens(tselftpreviousteventttoken((sK/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers/genshi.pyt__iter__ s    cc`s|\}}}|tkr |\}}|j}|j} i} xL|D]D\} } t| trz| | | j| jfs (.