hyb
2026-01-30 7657e1b2fa251a2ea372710ad75cb395a3c0e374
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Ë
ê^iã2ãóڗddlmZddlZddlZddlZddlmZddlmZm    Z    m
Z
m Z m Z ddl mZddlmZddlmZddlmZddlmZdd    lmZddd
„ZGd „d «Zddd „Zedk(re«yy)é)Ú annotationsN)Údumps)ÚabspathÚbasenameÚdirnameÚjoinÚrealpath)Úpython_version)Úunidata_version)Úfrom_fp)ÚCliDetectionResult)Ú __version__có8—ddddddœ}|€d}n|dk(rd}n|dk(rd}ntd    |z«‚    tjj||z«t    «j «}|
|d
k(r||S||vr||Stjjd «Œo) aÝAsk a yes/no question via input() and return their answer.
 
    "question" is a string that is presented to the user.
    "default" is the presumed answer if the user just hits <Enter>.
        It must be "yes" (the default), "no" or None (meaning
        an answer is required of the user).
 
    The "answer" return value is True for "yes" or False for "no".
 
    Credit goes to (c) https://stackoverflow.com/questions/3041986/apt-command-line-interface-like-yes-no-input
    TF)ÚyesÚyÚyeÚnoÚnz [y/n] rz [Y/n] rz [y/N] zinvalid default answer: '%s'Úz3Please respond with 'yes' or 'no' (or 'y' or 'n').
)Ú
ValueErrorÚsysÚstdoutÚwriteÚinputÚlower)ÚquestionÚdefaultÚvalidÚpromptÚchoices     õrH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\charset_normalizer/cli/__main__.pyÚ query_yes_nor"s®€ð˜t¨4°uÀ5Ñ I€E؀؉ؠ   EÒ    Ø‰Ø    DŠØ‰äÐ7¸'ÑAÓBÐBà
Ü 
‰
×ј FÑ*Ô+Ü“—‘“ˆØ Ð  6¨R¢<ؘ‘>Ð !Ø u‰_ؘ‘=Ð  ä J‰J× Ñ ÐSÔ Tð ócó@—eZdZdZ                d                            dd„Zdd„Zd    d„Zy)
ÚFileTypeaèFactory for creating file object types
 
    Instances of FileType are typically passed as type= arguments to the
    ArgumentParser add_argument() method.
 
    Keyword Arguments:
        - mode -- A string indicating how the file is to be opened. Accepts the
            same values as the builtin open() function.
        - bufsize -- The file's desired buffer size. Accepts the same values as
            the builtin open() function.
        - encoding -- The file's encoding. Accepts the same values as the
            builtin open() function.
        - errors -- A string indicating how encoding and decoding errors are to
            be handled. Accepts the same value as the builtin open() function.
 
    Backported from CPython 3.12
    Ncó<—||_||_||_||_y©N)Ú_modeÚ_bufsizeÚ    _encodingÚ_errors)ÚselfÚmodeÚbufsizeÚencodingÚerrorss     r!Ú__init__zFileType.__init__Es €ðˆŒ
؈Œ Ø!ˆŒØˆ r#có2‡—|dk(r¬d‰jvr8d‰jvrtjjStjSt    ˆfd„dD««r8d‰jvrtj
jStj
Sd‰j›}t |«‚    t|‰j‰j‰j‰j«S#t$r"}d|›d|›}tj|«‚d}~wwxYw)    Nú-ÚrÚbc3ó:•K—|]}|‰jv–—Œy­wr')r()Ú.0Úcr,s  €r!ú    <genexpr>z$FileType.__call__.<locals>.<genexpr>Vsøèø€Ò4¨Q˜$Ÿ*™*”_Ñ4ùsƒÚwaxzargument "-" with mode z can't open 'z': )r(rÚstdinÚbufferÚanyrrÚopenr)r*r+ÚOSErrorÚargparseÚArgumentTypeError)r,ÚstringÚmsgÚeÚmessages`    r!Ú__call__zFileType.__call__Qsáø€à SŠ=ؐd—j‘jÑ Ø+.°$·*±*Ñ+<”s—y‘y×'Ñ'ÐKÄ#Ç)Á)ÐKÜÓ4¨eÔ4Ô4Ø,/°4·:±:Ñ,=”s—z‘z×(Ñ(ÐMÄ3Ç:Á:ÐMà/°·
±
¨|Ð<Ü  “oÐ%ð    6ܘ §
¡
¨D¯M©M¸4¿>¹>È4Ï<É<ÓXÐ XøÜò    6Ø$ V H¨C°¨sÐ3ˆGÜ×,Ñ,¨WÓ5Ð 5ûð    6úsÂ46C+Ã+    DÃ4DÄDc
óN—|j|jf}d|jfd|jfg}dj    |Dcgc]}|dk7sŒ    t |«‘Œc}|Dcgc]\}}|€Œ    |›d|›‘Œc}}z«}t |«j›d|›dScc}wcc}}w)Nr/r0ú, éÿÿÿÿú=ú(ú))r(r)r*r+rÚreprÚtypeÚ__name__)r,ÚargsÚkwargsÚargÚkwÚargs_strs      r!Ú__repr__zFileType.__repr__cs¤€Øz‰z˜4Ÿ=™=Ð(ˆØ˜tŸ~™~Ð.°¸4¿<¹<Ð0HÐIˆØ—9‘9Ø"&Ö 4˜3¨#°«)ŒT#YÒ 4Ø.4×H¡7 2 s¸¹"QsgŠÓHñ Ió
ˆôt“*×%Ñ%Ð& a¨ z°Ð3Ð3ùò 5ùÛHsÁ
BÁ BÁ#
B! Á.    B! )r4rINN)r-Ústrr.Úintr/ú
str | Noner0rX)rBrVÚreturnz    typing.IO)rYrV)rOÚ
__module__Ú __qualname__Ú__doc__r1rFrU©r#r!r%r%2sJ„ñð(ØØ#Ø!ð
àð
ðð
ðð    
ð
ó
ó6ô$4r#r%có—tjd¬«}|jdtd«dd¬«|jdd    d
d d d ¬«|jddd
d dd¬«|jddd
d dd¬«|jddd
d dd¬«|jddd
d dd¬«|jdd d
d d!d"¬«|jd#d$d
d d%d&¬«|jd'd(d)d*td+d,¬-«|jd.d/d0j t t«ttjj«jd1«rd2nd3«d4¬5«|j|«}|jd6urW|jd urI|j r!|j D]}|j#«Œt%d7t&j(¬8«y9|j*d6urW|jd urI|j r!|j D]}|j#«Œt%d:t&j(¬8«y9|j,d;ks|j,d<kDrI|j r!|j D]}|j#«Œt%d=t&j(¬8«y9g}|j D]"}t/||j,|j0|j2d u¬>«}|j5«}|€t%d@j |j6|j,d<krdAndB«t&j(¬8«|j9t;t=|j6«d?ggdCgd d<d;d?d6« «n?|j9t;t=|j6«|j>|j@|jBDcgc]}||j>k7r|‘Œc}|jD|jF|jH|jJ|jLd?d6« «tO|«d9kDr½|jPr±|D]¬}||k7sŒ    |j9t;t=|j6«|j>|j@|jBDcgc]}||j>k7r|‘Œc}|jD|jF|jH|jJ|jLd?d « «Œ®|jd6urÁ|j>jSdD«d6urTt%dEj |j6«t&j(¬8«|jTd ur|j#«Œ³tWtY|j6««}    t[tY|j6««}
|
j]dF«} |jd ur;| j_dG|j>«|jTd urf|j#«nU|j*d urGtadHj |j6«dI«d ur |jTd ur|j#«Œž    tc|    dFjc| ««|dJ_2tg|dJjddK«5} | ji|jk««d?d?d?«|jTd usŒ|j#«Œ%|jpd urMt%tstO|«d9kDr|Dcgc]}|jt‘Œc}n|dJjtd6dM¬N««yJ|j D]Z}t%dOjc|Dcgc]4}|jvt=|j6«k(r|j>xsdP‘Œ6c}««Œ\yJcc}wcc}w#1swYŒûxYw#tl$rM} t%to| «t&j(¬8«|jTd ur|j#«Yd?} ~ yLd?} ~ wwxYwcc}wcc}w)Qzˆ
    CLI assistant using ARGV and ArgumentParser
    :param argv:
    :return: 0 if everything is fine, anything else equal trouble
    zvThe Real First Universal Charset Detector. Discover originating encoding used on text file. Normalize text to unicode.)Ú descriptionÚfilesÚrbú+zFile(s) to be analysed)rNÚnargsÚhelpz-vz    --verboseÚ
store_trueFÚverbosezjDisplay complementary information about file if any. Stdout will contain logs about the detection process.)ÚactionrÚdestrdz-az--with-alternativeÚ alternativeszIOutput complementary possibilities if any. Top-level JSON WILL be a list.z-nz --normalizeÚ    normalizezLPermit to normalize input file. If not set, program does not write anything.z-mz    --minimalÚminimalzBOnly output the charset detected to STDOUT. Disabling JSON output.z-rz    --replaceÚreplacezGReplace file when trying to normalize it instead of creating a new one.z-fz--forceÚforcezHReplace file without asking if you are sure, use this flag with caution.z-iz--no-preemptiveÚ no_preemptivez>Disable looking at a charset declaration to hint the detector.z-tz --thresholdÚstoregš™™™™™É?Ú    thresholdzUDefine a custom maximum amount of noise allowed in decoded content. 0. <= noise <= 1.)rgrrNrhrdz    --versionÚversionz;Charset-Normalizer {} - Python {} - Unicode {} - SpeedUp {}z.pyÚOFFÚONz"Show version information and exit.)rgrqrdTz.Use --replace in addition of --normalize only.)Úfileéz*Use --force in addition of --replace only.ggð?z---threshold VALUE should be between 0. AND 1.)rpÚexplainÚpreemptive_behaviourNz4Unable to identify originating encoding for "{}". {}z-Maybe try increasing maximum amount of chaos.rÚUnknownÚutfzJ"{}" file does not need to be normalized, as it already came from unicode.ú.rIz0Are you sure to normalize "{}" by replacing it ?rrÚwbéé)Ú ensure_asciiÚindentrHÚ    undefined)<r@ÚArgumentParserÚ add_argumentr%ÚfloatÚformatrr
r Ú    md_moduleÚ__file__rÚendswithÚ
parse_argsrlrjr`ÚcloseÚprintrÚstderrrmrpr rfrnÚbestÚnameÚappendr rr/Úencoding_aliasesÚcould_be_from_charsetÚlanguageÚ    alphabetsÚbomÚ percent_chaosÚpercent_coherenceÚlenriÚ
startswithÚclosedrr    rÚsplitÚinsertr"rÚ unicode_pathr>rÚoutputr?rVrkrÚ__dict__Úpath)ÚargvÚparserrPÚmy_fileÚx_ÚmatchesÚ
best_guessÚcpÚelÚdir_pathÚ    file_nameÚo_ÚfprDs              r!Ú
cli_detectr«ms†€ô × $Ñ $ð%ô€Fð  ×ÑØ”h˜t“n¨CÐ6Nðôð ×ÑØ ØØØØ ð@ð ôð ×ÑØ ØØØØ Ø Xð ôð ×ÑØ ØØØØ Ø [ð ôð ×ÑØ ØØØØ Ø Qð ôð ×ÑØ ØØØØ Ø Vð ôð ×ÑØ ØØØØ Ø Wð ôð ×ÑØ ØØØØ Ø Mð ôð ×ÑØ ØØØÜ Ø Ø dðôð ×ÑØØØM×TÑTÜ Ü Ó Ü Ü×'Ñ'×-Ñ-Ó/×8Ñ8¸Ô?‰EÀTó    
ð 2ðô
ð × Ñ ˜TÓ "€Dà ‡||tÑ §¡°%Ñ 7Ø :Š:ØŸ:™:ò  Ø— ‘ •ð  ä Ð>ÄSÇZÁZÕPØà ‡zzTјdŸl™l¨eÑ3Ø :Š:ØŸ:™:ò  Ø— ‘ •ð  ä Ð:ÄÇÁÕLØà ‡~~˜Ò˜tŸ~™~°Ò3Ø :Š:ØŸ:™:ò  Ø— ‘ •ð  ä Ð=ÄCÇJÁJÕOØà     €Bà—:‘:ó@ˆÜØ Ø—n‘nØ—L‘LØ!%×!3Ñ!3°uÐ!<ô    
ˆð—\‘\“^ˆ
à Ð Ü ØF×MÑMØ—L‘Lð Ÿ>™>¨CÒ/ñHàó ô—Z‘Zõ
ð I‰IÜ"ܘGŸL™LÓ)ØØØØØØØØØØó ö 𠠏I‰IÜ"ܘGŸL™LÓ)Ø×'Ñ'Ø×/Ñ/ð#-×"BÑ"BöàØ ×!4Ñ!4Ò4òòð
×'Ñ'Ø×(Ñ(Ø—N‘NØ×,Ñ,Ø×0Ñ0ØØóô ô(7‹|˜aÒ D×$5Ò$5Ø!òBؘZÓ'ØŸ    ™    Ü.Ü '¨¯ © Ó 5Ø "§ ¡ Ø "× 3Ñ 3ð/1×.FÑ.Fö!"à(*Ø')¨R¯[©[Ò'8ò%'ò!"ð
!#§ ¡ Ø "§ ¡ Ø "§¡Ø "× 0Ñ 0Ø "× 4Ñ 4Ø $Ø %óõðð,~‰~ Ò%Ø×&Ñ&×1Ñ1°%Ó8¸DÑ@ÜØd×kÑkØ#ŸL™Lóô!ŸZ™Zõ    ð —~‘~¨Ñ.ØŸ ™ œÙä"¤8¨G¯L©LÓ#9Ó:Ü$¤X¨g¯l©lÓ%;Ó<    à )§¡°Ó 4à—<‘< 5Ñ(Ø—I‘I˜b *×"5Ñ"5Ô6Ø—~‘~¨Ñ.ØŸ ™ à—J‘J %Ñ'Ü$ØJ×QÑQØ#ŸL™Lóðó    ð ñ ð—~‘~¨Ñ.ØŸ ™ œÙð    Ü)-¨h¸¿¹À» Ó)EBq‘EÔ&ä˜b ™e×0Ñ0°$Ó7ð6¸2ØŸ™ ×!2Ñ!2Ó!4Ô5÷6ð >‰>˜UÓ "Ø M‰MŽOðA@ðD ‡||uÑÜ Ü Ü.1°"«g¸ªk rÖ* —“Ó*¸rÀ!¹u¿~¹~Ø!Øô ô    
ð& ð—z‘zò        ˆGÜ Ø—    ‘    ð#%öàØŸ7™7¤g¨g¯l©lÓ&;Ò;🠙 Ò2 {Ñ2òóõ ð        ð ùòWùò.!"÷j6ð6ûäòÜœ#˜a›&¤s§z¡zÕ2Ø—~‘~¨Ñ.ØŸ ™ œÝûð    üò+ùòsIÎ4^Ñ=^Ù<^)Ú ^Ú#^)Û8` Ý 9`Þ^&    Þ"^)Þ)    _?Þ2A_:ß:_?Ú__main__)r)rrVrrVrYÚboolr')rŸzlist[str] | NonerYrW)Ú
__future__rr@rÚtypingÚjsonrÚos.pathrrrrr    Úplatformr
Ú unicodedatar Úcharset_normalizer.mdÚmdr…Úcharset_normalizerr Úcharset_normalizer.modelsr Úcharset_normalizer.versionrr"r%r«rOr]r#r!ú<module>r¹sYðÝ"ãÛ
Û Ýß>Õ>Ý#Ý'å)Ý&Ý8Ý2ôU÷B84ñ84ôvL ð^ ˆzÒÙ…Lðr#