• File: _base.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/html5lib/_trie/__pycache__/_base.cpython-37.pyc
  • Date Modified: 07/08/2021 11:01 AM
  • File size: 1.43 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

63)Z@s4ddlmZmZmZddlmZGdddeZdS))absolute_importdivisionunicode_literals)Mappingcs:eZdZdZdfdd	ZddZddZd	d
ZZS)TriezAbstract base class for triesNcs0tt|}dkrt|Sfdd|DS)Ncsh|]}|r|qS)
startswith).0x)prefixrE/opt/alt/python37/lib/python3.7/site-packages/html5lib/_trie/_base.py	<setcomp>szTrie.keys.<locals>.<setcomp>)superrkeysset)selfrr)	__class__)rrr	sz	Trie.keyscCs$x|D]}||r
dSq
WdS)NTF)rr)rrkeyrrrhas_keys_with_prefixs
zTrie.has_keys_with_prefixcCsT||kr|Sx:tdt|dD]$}|d||kr |d|Sq Wt|dS)N)rangelenKeyError)rrirrrlongest_prefixszTrie.longest_prefixcCs||}|||fS)N)r)rrZlprefixrrrlongest_prefix_item#s
zTrie.longest_prefix_item)N)	__name__
__module____qualname____doc__rrrr
__classcell__rr)rrrs
	
rN)Z
__future__rrrcollectionsrrrrrr<module>s