o {nhZ(@s dddddZGdddeZGdddZeZ eeddd d eedd d d eedddd eedddd eedddd eedddd eedddd eedddd eedd dd eed d!d"d eed#d$d%d eed&d'd(d eed)d*d+d eed,d-d.d eed/dd0d eed1d2d3d eed4d5d6d eed7d8d9d eed:d;dd eed?d@dAd eedBd-dCd eedDdEdFd eedGdHdId eedJdKdLd eedMd dNd eedOdPdQd eedRdSdTd eedUdVdWd eedXddYd eedZd[d\d eed]d^d_d eed`dKdad eedbdcddd eededfdgd eedhdidjd eedkdldmd eedndodpd eedqd;drd eedsd;dtd eedudidvd eedwdKdxd eedydzd{d eed|dzd}d eed~ddd eedddd eedddd eedd-dd eedd-dd eedd-dd eeddldd eedddd eeddSdd eeddSdd eedddd eedd[dd eedd$dd eeddKdd eedddd eeddcdd eedddd eeddHdd eedd2dd eedddd eeddfdd eedddd eedd@dd eedd^dd eedd dd eeddVdd eedd;dd eedddd eeddodd eedd!dd eedd^dd eedddd eedd8dd eeddEdd eeddPdd eedd*dd eedd5dd eedd'dd eedddd eedddd eedddd eedddd eedddd eedddd eedddd eeddKdd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^dd eedd^d d eed d^d d eed d^d d eedd^dd eeddzdd eeddzdd eeddzdd eeddzdd eeddzdd eeddzdd eeddzdd eeddzdd eed dzd!d eed"dzd#d eed$dzd%d eed&dzd'd eed(dzd)d eed*dzd+d eed,dzd-d eed.dzd/d eed0dzd1d eed2dzd3d eed4dzd5d eed6dzd7d eed8dzd9d eed:dzd;d eeddzd?d eed@dAdBd eedCdAdDd eedEdAdFd eedGdzdHd ejZejZ dIdJZ dKS(L)!X[c@s4eZdZddZddZeddZeddZd S) CharsetcCs$||||_|_|_|dk|_dS)NYes)idname collation is_default)selfr r r r r:/usr/local/lib/python3.10/dist-packages/pymysql/charset.py__init__ szCharset.__init__cCsd|j|j|jfS)Nz%Charset(id=%s, name=%r, collation=%r))r r r rrrr__repr__s zCharset.__repr__cCs|j}|dvr dS|S)Nutf8mb4utf8mb3utf8r rr rrrencodingszCharset.encodingcCs |jdkS)N?)r rrrr is_binarys zCharset.is_binaryN)__name__ __module__ __qualname__rrpropertyrrrrrrr s rc@s,eZdZddZddZddZddZd S) CharsetscCsi|_i|_dSN)_by_id_by_namerrrrrs zCharsets.__init__cCs&||j|j<|jr||j|j<dSdSr")r#r r r$r )rcrrradd#s z Charsets.addcCs |j|Sr")r#)rr rrrby_id(s zCharsets.by_idcCs|j|Sr")r$getlowerrrrrby_name+szCharsets.by_nameN)rrrrr&r'r*rrrrr!s  r!big5big5_chinese_cir latin2latin2_czech_csdec8dec8_swedish_cicp850cp850_general_cilatin1latin1_german1_cihp8hp8_english_cikoi8rkoi8r_general_cirlatin1_swedish_ci latin2_general_ci swe7swe7_swedish_ci asciiascii_general_ci ujisujis_japanese_ci sjissjis_japanese_cicp1251cp1251_bulgarian_cilatin1_danish_cihebrewhebrew_general_citis620tis620_thai_cieuckreuckr_korean_cilatin7latin7_estonian_cslatin2_hungarian_cikoi8ukoi8u_general_cicp1251_ukrainian_cigb2312gb2312_chinese_cigreekgreek_general_cicp1250cp1250_general_cilatin2_croatian_cigbkgbk_chinese_cicp1257cp1257_lithuanian_cilatin5latin5_turkish_cilatin1_german2_ci armscii8armscii8_general_cirrutf8_general_ci"cp1250_czech_cs$cp866cp866_general_ci%keybcs2keybcs2_general_ci&maccemacce_general_ci'macromanmacroman_general_ci(cp852cp852_general_ci)latin7_general_ci*latin7_general_cs+ macce_bin,cp1250_croatian_ci-rutf8mb4_general_ci. utf8mb4_bin/ latin1_bin0latin1_general_ci1latin1_general_cs2 cp1251_bin3cp1251_general_ci4cp1251_general_cs5 macroman_bin9cp1256cp1256_general_ci: cp1257_bin;cp1257_general_cirbinary@ armscii8_binA ascii_binB cp1250_binC cp1256_binD cp866_binEdec8_binF greek_binG hebrew_binHhp8_binI keybcs2_binJ koi8r_binK koi8u_binLutf8_tolower_ciM latin2_binN latin5_binO latin7_binP cp850_binQ cp852_binRswe7_binSutf8_binTbig5_binU euckr_binV gb2312_binWgbk_binrsjis_binY tis620_binrujis_bin\geostd8geostd8_general_ci] geostd8_bin^latin1_spanish_ci_cp932cp932_japanese_ci` cp932_binaeucjpmseucjpms_japanese_cib eucjpms_binccp1250_polish_ciutf8_unicode_ciutf8_icelandic_ciutf8_latvian_ciutf8_romanian_ciutf8_slovenian_ciutf8_polish_ciutf8_estonian_ciutf8_spanish_ciutf8_swedish_ciutf8_turkish_ci utf8_czech_ciutf8_danish_ciutf8_lithuanian_ciutf8_slovak_ciutf8_spanish2_ci utf8_roman_ciutf8_persian_ciutf8_esperanto_ciutf8_hungarian_ciutf8_sinhala_ciutf8_german2_ciutf8_croatian_ciutf8_unicode_520_ciutf8_vietnamese_ciutf8_general_mysql500_ciutf8mb4_unicode_ciutf8mb4_icelandic_ciutf8mb4_latvian_ciutf8mb4_romanian_ciutf8mb4_slovenian_ciutf8mb4_polish_ciutf8mb4_estonian_ciutf8mb4_spanish_ciutf8mb4_swedish_ciutf8mb4_turkish_ciutf8mb4_czech_ciutf8mb4_danish_ciutf8mb4_lithuanian_ciutf8mb4_slovak_ciutf8mb4_spanish2_ciutf8mb4_roman_ciutf8mb4_persian_ciutf8mb4_esperanto_ciutf8mb4_hungarian_ciutf8mb4_sinhala_ciutf8mb4_german2_ciutf8mb4_croatian_ciutf8mb4_unicode_520_ciutf8mb4_vietnamese_cigb18030gb18030_chinese_ci gb18030_bingb18030_unicode_520_ciutf8mb4_0900_ai_cicCs|dvrdS|S)z3Convert MySQL's charset name to Python's codec namerrrrrrrcharset_to_encodingsrdN) MBLENGTHobjectrr! _charsetsr&r*charset_by_namer' charset_by_idrdrrrrs6