/usr/lib64/python2.6/Tools/scripts
Edit: /usr/lib64/python2.6/Tools/scripts/parseentities.pyc (2092B)
Ñò
« gc @ sú d Z d d k Z d d k Z d d k Z e i d ƒ Z d d d „ Z d „ Z e d j o˜ e
e i ƒ d j o e e i d ƒ Z
n
e i Z
e
e i ƒ d j o e e i d d
ƒ Z n
e i Z e
i ƒ Z e e ƒ Z e e e ƒ n d S( s¥ Utility for parsing HTML entity definitions available from:
http://www.w3.org/ as e.g.
http://www.w3.org/TR/REC-html40/HTMLlat1.ent
Input is read from stdin, output is written to stdout in form of a
Python snippet defining a dictionary "entitydefs" mapping literal
entity name to character or numeric entity.
Marc-Andre Lemburg, mal@lemburg.com, 1999.
Use as you like. NO WARRANTIES.
iÿÿÿÿNs7 i c C s… d } | d j o t | ƒ } n h } xU t i | | | ƒ } | p Pn | i ƒ \ } } } | | f | | <| i ƒ } q, | S( Ni ( t Nonet lent entityREt searcht groupst end( t textt post endpost dt mt namet charcodet comment( ( s3 /usr/lib64/python2.6/Tools/scripts/parseentities.pyt parse s
c C sÕ | i d ƒ | i ƒ } | i ƒ xž | D]– \ } \ } } | d d j o> t | d d !ƒ } | d j o d | } q— t | ƒ } n
t | ƒ } t i | ƒ } | i d | | | f ƒ q* W| i d ƒ d S( Ns entitydefs = {
i s iÿÿÿÿi s '\%o's '%s': %s, # %s
s
}
( t writet itemst sortt intt reprt TextToolst collapse( t ft defsR R R R
t code( ( s3 /usr/lib64/python2.6/Tools/scripts/parseentities.pyt writefile# s
t __main__i i t w( t __doc__t ret sysR t compileR R R R t __name__R t argvt opent infilet stdint outfilet stdoutt readR R ( ( ( s3 /usr/lib64/python2.6/Tools/scripts/parseentities.pyt
s