isa0060/serio1/input0 $!ˆl–äY>”*e¶…6 Aq‘\êbѿΠ„ €h?ÍÀË>©!§ ôª1NÍÆ`+ã ó—gd¢ZddlmZddlZddlZddlmZddlmZdZ dZ dZ d Z d Z d Zd Zid e e df“de e df“de e df“de e df“de e df“de e df“de e df“de e df“de e df“de e df“de e df“de e df“d d“de e df“de e df“de ddf“de ddf“e ddfe e dfe e dfd œ¥Zid!d “d"d “d#d“d$d“d%d“d&d“d'd“d(d“d)d“d*d“d+d“d,d“d-d“d.d“d/d“d0d“d1d“dddd2dd3d d4œ¥Zd5d6dd7œZdd8„Zd9„Zd:„Zd;„ZGd<„d=¦«ZdS)>)ÚCharsetÚ add_aliasÚ add_charsetÚ add_codecé)ÚpartialN)Úerrors)Úencode_7or8bitééééúus-asciiz unknown-8bitÚz iso-8859-1z iso-8859-2z iso-8859-3z iso-8859-4z iso-8859-9z iso-8859-10z iso-8859-13z iso-8859-14z iso-8859-15z iso-8859-16z windows-1252Úviscii)NNNÚbig5Úgb2312zeuc-jpú iso-2022-jpÚ shift_jisúutf-8)rzkoi8-rrÚlatin_1zlatin-1Úlatin_2zlatin-2Úlatin_3zlatin-3Úlatin_4zlatin-4Úlatin_5zlatin-5Úlatin_6zlatin-6Úlatin_7zlatin-7Úlatin_8zlatin-8Úlatin_9zks_c_5601-1987zeuc-kr)zlatin-9Úlatin_10zlatin-10Úcp949Úeuc_jpÚeuc_krÚasciiÚ eucgb2312_cnÚbig5_tw)rrrcóT—|tkrtd¦«‚|||ft|<dS)a>Add character set properties to the global registry. charset is the input character set, and must be the canonical name of a character set. Optional header_enc and body_enc is either Charset.QP for quoted-printable, Charset.BASE64 for base64 encoding, Charset.SHORTEST for the shortest of qp or base64 encoding, or None for no encoding. SHORTEST is only valid for header_enc. It describes how message headers and message bodies in the input charset are to be encoded. Default is no encoding. Optional output_charset is the character set that the output should be in. Conversions will proceed from input charset, to Unicode, to the output charset when the method Charset.convert() is called. The default is to output in the same character set as the input. Both input_charset and output_charset must have Unicode codec entries in the module's charset-to-codec mapping; use add_codec(charset, codecname) to add codecs the module does not know about. See the codecs module's documentation for more information. z!SHORTEST not allowed for body_encN)ÚSHORTESTÚ ValueErrorÚCHARSETS)ÚcharsetÚ header_encÚbody_encÚoutput_charsets ú:/opt/alt/python-internal/lib64/python3.11/email/charset.pyrrjs5€ð.•8ÒÐÝÐ<Ñ=Ô=Ð=Ø# X¨~Ð>…HˆWÑÐÐócó—|t|<dS)z�Add a character set alias. alias is the alias name, e.g. latin-1 canonical is the character set's canonical name, e.g. iso-8859-1 N)ÚALIASES)ÚaliasÚ canonicals r.rr†s€ð …GˆE�N€N€Nr/có—|t|<dS)a$Add a codec that map characters in the given charset to/from Unicode. charset is the canonical name of a character set. codecname is the name of a Python codec, as appropriate for the second argument to the unicode() built-in, or to the encode() method of a Unicode string. N)Ú CODEC_MAP)r*Ú codecnames r.rr�s€ð#…IˆgÑÐÐr/cón—|tkr| dd¦«S| |¦«S)Nr#Úsurrogateescape)Ú UNKNOWN8BITÚencode)ÚstringÚcodecs r.Ú_encoder=›s4€Ø • ÒÐØ�}Š}˜WÐ&7Ñ8Ô8Ð8à�}Š}˜UÑ#Ô#Ð#r/cóL—eZdZdZefd„Zd„Zd„Zd„Zd„Z d„Z d„Z d „Z d „Z d S) ra@ Map character sets to their email properties. This class provides information about the requirements imposed on email for a specific character set. It also provides convenience routines for converting between