ó â\e[c@sĄdZddlmZyeeZWnek r=eZnXesrddlm Z d„Z d„Z d„Z n+ddlm Z d„Z d „Z d „Z d S( sTTools for reading and writing PKG-INFO / METADATA without caring about the encoding.iĸĸĸĸ(tParser(t GeneratorcCstƒj|ƒS(N(Rtparsestr(tbytestr((s./tmp/pip-install-0xiv62/wheel/wheel/pkginfo.pytread_pkg_info_bytesscCs.t|dƒ}tƒj|ƒ}WdQX|S(Ntr(topenRtparse(tpaththeaderstmessage((s./tmp/pip-install-0xiv62/wheel/wheel/pkginfo.pyt read_pkg_infosc Cs;t|dƒ&}t|dtddƒj|ƒWdQXdS(Ntwt mangle_from_t maxheaderleni(RRtFalsetflatten(RR tmetadata((s./tmp/pip-install-0xiv62/wheel/wheel/pkginfo.pytwrite_pkg_infos(tBytesGeneratorcCs.|jddddƒ}tƒj|ƒ}|S(Ntencodingtasciiterrorstsurrogateescape(tdecodeRR(RR R ((s./tmp/pip-install-0xiv62/wheel/wheel/pkginfo.pyRscCs:t|dddddƒ}tƒj|ƒ}WdQX|S(NRRRRR(RRR(RR R ((s./tmp/pip-install-0xiv62/wheel/wheel/pkginfo.pyR "s   c Cs;t|dƒ&}t|dtddƒj|ƒWdQXdS(NtwbR Ri(RRRR(RR tout((s./tmp/pip-install-0xiv62/wheel/wheel/pkginfo.pyR)sN(t__doc__t email.parserRtunicodeRt_PY3t NameErrortTruetemail.generatorRRR RR(((s./tmp/pip-install-0xiv62/wheel/wheel/pkginfo.pyts