Your IP : 216.73.216.213
3
� f� � @ s� d Z ddlZddlZejd�Zddd�Zdd� Zedkr�eej �d krVe
ej d �ZnejZeej �d
kr|e
ej d
d�Z
nejZ
ej� Zee�Zee
e� dS )
a� 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.
� Nz8<!ENTITY +(\w+) +CDATA +"([^"]+)" +-- +((?:.|\n)+?) *-->c C sX d}|d krt | �}i }x:tj| ||�}|s.P |j� \}}}||f||<