nfc@sdZddlZddlZddlZejded[dZdefdYZdZ d Z d Z d Z ej d Zej d Zej dZej de dZej de dZej dZej e dZej dZej e de de de de dZej de Zej e dZej de dejdejZej d Zej e d!Zej d"e d#Zej e Zej d$Zej d%Z d&e d'Z!d(Z"d)e e"d*d'e e!d+Z#ej d,e de d-e e#d.e Z$ej d/e d0e de d1e d'd2e d3e de d4e d5e de d6e d7Z%ej d8e d'e Z&ej e d7Z'ej d9Z(ej d:Z)ej d;Z*ej+d<d=Z,d>Z-ej e-dZ.ej d?e-d@e-dAZ/ej dBe-dCZ0dDfdEYZ1dFe1fdGYZ2e3dHZ4e5dIkre4ndS(Js8A parser for XML, using the derived class as static DTD.iNs4The xmllib module is obsolete. Use xml.sax instead.is0.3tErrorcBseZRS((t__name__t __module__(((s/usr/lib64/python2.7/xmllib.pyRss[ ]+s[ ]*s[a-zA-Z_:][-a-zA-Z0-9._:]*s(?:'[^']*'|"[^"]*")s [^ -~-]s[]&<]t&s&(s(|#[0-9]+|#x[0-9a-fA-F]+)[^-a-zA-Z0-9._:]s &(?Ps)[^-a-zA-Z0-9._:]s2&#(?P[0-9]+[^0-9]|x[0-9a-fA-F]+[^0-9a-fA-F])t$s s (?Ps)(t=s (?Ps |[-a-zA-Z0-9.:+*%?!\(\)_#=~]+))?t/?)>s <(?Ps)(?P(?:s)*)ss (?:[^>'"]|s)*>s s(?P<%s>t)sV(?P<%s>"[-'\(\)+,./:=?;!*#@$_%% a-zA-Z0-9]*"|'[-\(\)+,./:=?;!*#@$_%% a-zA-Z0-9]*')s(?:SYSTEM|PUBLICtpubidtsyslits s(?:tencodingsF(?P'[A-Za-z][-A-Za-z0-9._]*'|"[A-Za-z][-A-Za-z0-9._]*"))?(?:t standalones+(?P'(?:yes|no)'|"(?:yes|no)"))?s\?>s <\?(?Pss--s s s[a-zA-Z_][-a-zA-Z0-9._]*s(?:(?Ps):)?(?Ps)$sxmlns(?::(?Ps))?$t XMLParsercBseZiZiZdZdZdZdZdZdZ dZ dZ dZ dZ dZdZd Zd Zdd Zd Zd ZdZdZdZid2d6d2d6d2d6ZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$idd 6d!d"6d#d$6d%d&6d'd(6Z%d)Z&d*Z'd+Z(d,Z)d-Z*d.Z+d/Z,d0Z-d1Z.RS(3iicKsd|_d|kr%|d|_nd|krA|d|_nd|kr]|d|_nd|kry|d|_nd|kr|d|_n|jdS(Nitaccept_unquoted_attributestaccept_missing_endtag_nametmap_caset accept_utf8ttranslate_attribute_references(t_XMLParser__fixedt&_XMLParser__accept_unquoted_attributest&_XMLParser__accept_missing_endtag_namet_XMLParser__map_caset_XMLParser__accept_utf8t*_XMLParser__translate_attribute_referencestreset(tselftkw((s/usr/lib64/python2.7/xmllib.pyt__init__gs      cCs6d|_i|_|j|j|j|jdS(Ni(Rtelementst_XMLParser__fixdictt__dict__t_XMLParser__fixclasst __class__(R((s/usr/lib64/python2.7/xmllib.pyt __fixelementsus  cCs5|j|jx|jD]}|j|qWdS(N(RR t __bases__R!(Rtkltk((s/usr/lib64/python2.7/xmllib.pyt __fixclass{scCsx|jD]}|d dkrv|d}|jj|d\}}|dkrt|||f|j|||}|j||d}qn||dkrRPnt,j ||rt|j dn|j|||d}qn tdPqW|dkrd|_n|rX ||krX ||}|j d||j r tj|r |j dn|j||j|jd|_||d|_|j-|S|||_|r |js |j dn|jr |j dx(|jr |j.|jd dq Wq ndS(Nis sillegal data at start of filesdata not in contentsillegal character in contentRis, declaration not at start of documentR R R is1.0sonly XML version 1.0 supportedsmultiple DOCTYPE elementss$DOCTYPE not at beginning of documenttnameRRJs`;' missing in charreftchars`;' missing in entityreft]is bogus `]]>'sneither < nor & ??s bogus `%s'sno elements in filesmissing end tags(/R6RTR;R8t handle_dataR:tcountt interestingRLR1tspaceRNR,ROR7Rtillegalt starttagopenR9tparse_starttagR=t endtagopent parse_endtagt commentopent parse_commentt cdataopent parse_cdatatxmldeclRPRt handle_xmlR2tprocopent parse_proctdoctypeR<t parse_doctypeRtlowertcharrefthandle_charreft entityrefRStunknown_entityreft cdatacloseRDt finish_endtag( RR2R6RVtnRERWtjR&R R R Rb((s/usr/lib64/python2.7/xmllib.pyRDsp                                                   "    -  "                 cCs|j}|||d!dkr/tdntj||d}|dkrUdStj||d|jdr|jdn||jdddkr|jd n|j rt j||d|jdr|jd n|j ||d|jd!|j dS( Nis