Ñò §ÚêLc@s¹ddddgZddkZddkZddklZddklZdZd Zd Z d Z d Z heedfd 6eedfd6eedfd6eedfd6eedfd6eedfd6eedfd6eedfd6eedfd6eedfd6eedfd6eedfd6dAd 6eedfd6eedfd6eddfd6eddfd6eddfd6eedfd6e edfd6dedfd 6Z hd d!6d d"6dd#6dd$6dd%6dd&6dd'6dd(6dd)6dd*6dd+6dd,6dd-6dd.6dd/6dd06dd16dd26dd36dd46d5d66dd76d8d96d d:6Zhd;d6d<d6dd 6Zdddd=„Zd>„Zd?„ZddBd@„ƒYZdS(CtCharsett add_aliast add_charsett add_codeciÿÿÿÿN(terrors(tencode_7or8bitiiiisus-asciis iso-8859-1s iso-8859-2s iso-8859-3s iso-8859-4s iso-8859-9s iso-8859-10s iso-8859-13s iso-8859-14s iso-8859-15s iso-8859-16s windows-1252tvisciitbig5tgb2312s iso-2022-jpseuc-jpt shift_jisskoi8-rsutf-8t8bittlatin_1slatin-1tlatin_2slatin-2tlatin_3slatin-3tlatin_4slatin-4tlatin_5slatin-5tlatin_6slatin-6tlatin_7slatin-7tlatin_8slatin-8tlatin_9slatin-9tlatin_10slatin-10sks_c_5601-1987tcp949teuc_jpseuc-krteuc_krtasciit eucgb2312_cntbig5_twcCs4|tjotdƒ‚n|||ft|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. s!SHORTEST not allowed for body_encN(tSHORTESTt ValueErrortCHARSETS(tcharsett header_enctbody_enctoutput_charset((s%/usr/lib64/python2.6/email/charset.pyRks cCs|t|scCsÈ|iƒ}|itjotii|ƒt|ƒtS|itjoti i |ƒt|ƒtS|it jo@tii|ƒ}ti i |ƒ}t ||ƒt|ƒtSt|ƒSdS(s/Return the length of the encoded header string.N( RKR1R/temailt base64mimet base64_lentlentMISC_LENR@t quoprimimetheader_quopri_lenRtmin(R5RBtcsettlenb64tlenqp((s%/usr/lib64/python2.6/email/charset.pytencoded_header_lenFs cCsî|iƒ}|o|i|ƒ}n|itjotii||ƒS|itjotii||ddƒS|it jobtii |ƒ}tii |ƒ}||jotii||ƒStii||ddƒSn|SdS(sEHeader-encode a string, optionally converting it to output_charset. If convert is True, the string will be converted from the input charset to the output charset automatically. This is not useful for multibyte character sets, which have line length issues (multibyte characters must be split on a character, not a byte boundary); use the high-level Header class to deal with these issues. convert defaults to False. The type of encoding (base64 or quoted-printable) will be based on self.header_encoding. t maxlinelenN( RKRCR1R/RLRMt header_encodeR@RQR0RRNRR(R5RBRCRTRURV((s%/usr/lib64/python2.6/email/charset.pyRYUs  cCsd|o|i|ƒ}n|itjotii|ƒS|itjotii|ƒS|SdS(sÉBody-encode a string and convert it to output_charset. If convert is True (the default), the string will be converted from the input charset to output charset automatically. Unlike header_encode(), there are no issues with byte boundaries and multibyte charsets in email bodies, so this is usually pretty safe. The type of encoding (base64 or quoted-printable) will be based on self.body_encoding. N(RCR2R/RLRMt body_encodeR@RQ(R5RBRC((s%/usr/lib64/python2.6/email/charset.pyRZts (t__name__t __module__t__doc__tDEFAULT_CHARSETR9R:t__repr__R=R>RARCRFtTrueRJRKRWtFalseRYRZ(((s%/usr/lib64/python2.6/email/charset.pyR›s+ !          (NNN((t__all__temail.base64mimeRLtemail.quoprimimeRtemail.encodersRR@R/RRPR^R0RR"R%RRRR(((s%/usr/lib64/python2.6/email/charset.pyts†