hyb
2025-11-10 e0a856b5072c5a09f3f6de6da85abf90e00ee704
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
Ë
WñúhŸ7ãóڗUdZddlZddlZddlZddlZddlZddlmZm    Z    ddl
m Z m Z m Z mZmZmZddlmZmZddd    œZe eeed
ffed <d eee efd e ee ffd„ZGd„de«Zy)z.Implements parser to parse MySQL option files.éN)Ú ConfigParserÚMissingSectionHeaderError)ÚAnyÚDictÚListÚOptionalÚTupleÚUnioné)Ú CNX_POOL_ARGSÚDEFAULT_CONFIGURATION)ÚiniÚcnf)r)ÚntÚposix.ÚDEFAULT_EXTENSIONSÚconfigÚreturnc ó¼—d|vrn    t|dt«r    |dg|d<|d}|d=t|dt«r    |dg|d<tt    |d«d¬«}|d=|j
|Ž}i}|D]o}    ||j «D]V\}}||fz }    |dk(rd}|j|d|d    «|tvr|d
k7r    t|}||vs||d |d kr|||<ŒXŒq|j «D]a\}}    |    \}}}
||vsŒ|j|
«sŒ#|j|
|«sŒ6|dvrt|«||<ŒI    tj|«||<Œcd|vr|j%d«|d<|S#t$rddg}YŒ[wxYw#t$r|dk(rtd |›d «d‚YŒwxYw#t$rYŒEwxYw#tt t"f$r|||<YŒâwxYw)z¦
    Read option files for connection parameters.
 
    Checks if connection arguments contain option file arguments, and then
    reads option files accordingly.
    Ú option_filesÚ option_groupsÚclientÚconnector_pythonF)Ú keep_dashesÚsocketÚ unix_socketrÚfailoverr zUnsupported argument 'ú'N)ÚpasswordÚpasswd)Ú
isinstanceÚstrÚKeyErrorÚMySQLOptionsParserÚlistÚ get_groups_as_dict_with_priorityÚitemsÚsetr r ÚAttributeErrorÚ has_sectionÚ
has_optionÚastÚ literal_evalÚ
ValueErrorÚ    TypeErrorÚ SyntaxErrorÚpop) rÚgroupsÚ option_parserÚconfig_from_fileÚconfig_optionsÚgroupÚoptionÚvalueÚ_ÚvaluesÚsections            úNH:\Change_password\venv_build\Lib\site-packages\mysql/connector/optionfiles.pyÚread_option_filesr=2s€€ð˜Òð    4ܘ& Ñ1´3Ô7Ø+1°/Ñ+BÐ*CÑ'ؘOÑ,ˆFؐÐ'ô f˜^Ñ,¬cÔ 2Ø&,¨^Ñ&<Ð%=ˆF>Ñ "Ü*Ü ˜Ñ'Ó (°eô
ˆ ð >Ð "ð ;ˆM× :Ñ :¸FÐ Cð    ð;=ˆØò    ˆEð Ø%5°eÑ%<×%BÑ%BÓ%Dò(‘MF˜Eؘe˜XÑ%Eð(Ø! XÒ-Ø%2˜FØ)×-Ñ-¨e°]ÀEÈ!ÁHÔMà!¬Ñ6¸6ÀZÒ;OÜ 5°fÑ =˜Að#¨.Ñ8Ø-¨fÑ5°aÑ8¸EÀ!¹HÒDà5:˜N¨6Ñ2øñ(ð    ð2-×2Ñ2Ó4ò     /‰NˆFFØ &Ñ ˆE1gà˜fÒ$Ø!×-Ñ-¨gÕ6Ø!×,Ñ,¨W°fÕ=àÐ3Ñ3Ü%(¨£ZF˜6’Nð/Ü),×)9Ñ)9¸%Ó)@˜˜všð     /ð vÑ Ø$*§J¡J¨xÓ$8ˆF=Ñ !Ø €Møôoò    4ØР2Ð3‹Fð    4ûô>$ò(Ø Ð$6Ò6Ü"0Ø"8¸¸ÀРBó#à#'ð(ò7ð(ûô
ò Úð ûô'¬    ´;Ð?ò/Ø).˜˜v›ð/úsZ‡$E6Á:F/ÂA
F
Ã$F/ÅF?Å6 FÆFÆ
F,Æ(F/Æ+F,Æ,F/Æ/    F<Æ;F<Æ?GÇGc
ó—eZdZdZ    ddeeeeefdeddfd„Z    dedefd„Z
deeddfd    „Z     dd
eeeefd eedeefd „Z d ede eeffd„Zd ede ee eeeeffffd„Zd ede ee eefffd„Zy)r$z9This class implements methods to parse MySQL option filesNÚfilesrrcóz—tjd«|_i|_t    j
|d¬«t tj|_    ||_
|s td«‚t|t«r|gn||_|jt!|j««|j#«|_y)z·Initialize
 
        If defaults is True, default option files are read first
 
        Raises ValueError if defaults is set to True but defaults files
        cannot be found.
        z>(?P<option>[^:=\s][^:=]*)\s*(?:(?P<vi>[:=])\s*(?P<value>.*))?$F)Ústrictzfiles argument should be givenN)ÚreÚcompileÚoptcreÚ _options_dictÚSafeConfigParserÚ__init__rÚosÚnameÚdefault_extensionrr.r!r"r?Ú_parse_optionsr%Úget_groups_as_dictÚ    _sections)Úselfr?rs   r<rGzMySQLOptionsParser.__init__|s˜€ô#%§*¡*ð  ó#
ˆŒ ðEGˆÔä×!Ñ! $¨uÕ5ä2DÄRÇWÁWÑ2MˆÔØ!,ˆÔáÜÐ=Ó>Ð >Ü+5°e¼SÔ+A ¡ÀuˆŒ
à ×ÑœD §¡Ó,Ô-Ø48×4KÑ4KÓ4MˆóÚ    optionstrcó^—|js|jdd«}|j«S)z¢Converts option strings
 
        Converts option strings to lower case and replaces dashes(-) with
        underscores(_) if keep_dashes variable is set.
        ú-r9)rÚreplaceÚlower)rNrPs  r<Ú optionxformzMySQLOptionsParser.optionxforms,€ð ×ÒØ!×)Ñ)¨#¨sÓ3ˆI؏‰Ó Ð rOc
ó^—|dd}g}d}d}|D]¥}    |||dzdvrtd|›d«‚t|dd¬    «5}|j«D]G}|jd
«rÌ|j    dd«\}}    |    j «}    t j|    «D]Ž}
t jj|    |
«}
|
|vrt|j|
|««‚t jj|
«sŒb|
j|j«sŒ~|j|
«ŒŒá|jd «sŒó|j    dd«\}} | j «} | |vrt|j| |««‚|j| «ŒJ|dz }|j|«ddd«Œ¨|j!|«} t#|«t#| «z
}|rtddj|«›d«‚y#1swYŒUxYw#t$r} td |›d | ›«| ‚d} ~ wwxYw)aKParse options from files given as arguments.
         This method checks for !include or !inculdedir directives and if there
         is any, those files included by these directives are also parsed
         for options.
 
        Raises ValueError if any of the included or file given in arguments
        is not readable.
        Nrz4Option file '{0}' being included again in file '{1}'r zSame option file 'z&' occurring more than once in the listÚrúutf-8©Úencodingz !includedirú!includezFailed reading file 'z': zFile(s) z, z could not be read.)r.ÚopenÚ    readlinesÚ
startswithÚsplitÚstriprHÚlistdirÚpathÚjoinÚformatÚisfileÚendswithrJÚappendÚIOErrorÚreadr()rNr?Ú initial_filesÚindexÚerr_msgÚfile_Úop_fileÚliner9Údir_pathÚentryÚfilenameÚerrÚ
read_filesÚnot_read_filess               r<rKz!MySQLOptionsParser._parse_options§s0€ð™a˜ˆ ؈؈ØHˆà"ó    SˆEð SؘM¨%°!©)¨+Ð6Ñ6Ü$Ø,¨U¨Gð40ð0óðô˜% ¨wÔ7ð(¸7Ø '× 1Ñ 1Ó 3ó3˜ØŸ?™?¨=Ô9Ø*.¯*©*°T¸1Ó*=™K˜A˜xØ'/§~¡~Ó'7˜HÜ)+¯©°HÓ)=ò8 Ü(*¯©¯ © °X¸uÓ(E Ø#(¨E¡>Ü*4°W·^±^ÀEÈ5Ó5QÓ*RÐ$RÜ#%§7¡7§>¡>°%Õ#8¸U¿^¹^Ø$(×$:Ñ$:õ>"ð%*§L¡L°Õ$7ñ8ð"Ÿ_™_¨ZÕ8Ø*.¯*©*°T¸1Ó*=™K˜A˜xØ'/§~¡~Ó'7˜HØ'¨5Ñ0Ü&0°·±ÀÈ%Ó1PÓ&QРQØ!ŸL™L¨Ö2ð%3ð(˜Q‘JEØ—L‘L Ô'÷-(ùð    SðB—Y‘Y˜uÓ%ˆ
ܘU›¤c¨*£oÑ5ˆÙ ܘx¨¯    ©    °.Ó(AÐ'BÐBUÐVÓWÐ Wð ÷9(ð(ûô.ò SÜ Ð#8¸¸¸sÀ3À%Ð!HÓIÈsÐRûð SúsB“'H ºCHÃ<HÄ%HÄ>A.HÆ,H ÈH        ÈH È     H,ÈH'È'H,Ú    filenamesrZcóx—t|t«r|g}g}t|«D]º\}}    tj«}t j |d¬«5}|D]·}|j«}|jd«rŒ%|jj|«}    |jj|«sI|    rG|    jddd«\}
} } |
r| s| s|j|›d«Œ|j|›d«Œ¤|j|›d«Œ¹    d    d    d    «|jd
«    |j!||«|j"j%«D]K}     |j&| |j"| j+«D]\}}||f|j&| |<ŒŒM|j-«|_|j1«|j3|«Œ½|S#1swYŒÐxYw#t$rYŒØwxYw#t($ri|j&| <YŒ¬wxYw#t.$r|j!||«YŒ}wxYw) zåRead and parse a filename or a list of filenames.
 
        Overridden from ConfigParser and modified so as to allow options
        which are not inside any section header
 
        Return list of successfully read files.
        rXrYr[r7Úvir8z=
ú
Nr)r!r"Ú    enumerateÚioÚStringIOÚcodecsr\r`r^rDÚmatchÚSECTCREr6ÚwriteÚseekrhÚ_readrMÚkeysrEr#r'Ú_dictrÚcloserg)rNrvrZÚread_okÚpriorityrrÚout_fileÚin_fileroÚ    match_objÚoptnameÚ    delimiterÚoptvalr6r7r8s                r<rizMySQLOptionsParser.readÛs+€ô i¤Ô %Ø"˜ ˆI؈Ü"+¨IÓ"6ó'    %Ñ ˆHhð ÜŸ;™;›=Ü—[‘[ °GÔ<ð8ÀØ 'ò8˜Ø#Ÿz™z›|˜àŸ?™?¨:Ô6Ø$à$(§K¡K×$5Ñ$5°dÓ$;˜    Ø#Ÿ|™|×1Ñ1°$Ô7¹IØ9B¿¹Ø (¨$°ó:Ñ6˜G Y°ñ '©v¹iØ (§¡°$°°s¨|Õ <à (§¡°$°°r¨{Õ ;à$ŸN™N¨d¨V°2¨;Õ7ñ!8÷8ð$— ‘ ˜aÔ ð /Ø—
‘
˜8 XÔ.Ø!Ÿ^™^×0Ñ0Ó2òNEð7Ø×*Ñ*¨5Ò1ð*.¯©¸Ñ)>×)DÑ)DÓ)FòN™ ˜ Ø=BÀHÐ<M˜×*Ñ*¨5Ñ1°&Ò9ñNð Nð"&§¡£”ð N‰NÔ Ø N‰N˜8Ö $ðO'    %ðPˆ÷K8ð8ûô&ò Úð ûô$ò7Ø46˜×*Ñ*¨5Ó1ð7ûô-ò /Ø—
‘
˜8 XÖ.ð /úsa©+G-ÁB=G!ÄG-Ä,/HÅG=Å+AHÇ!G*    Ç&G-Ç-    G:Ç9G:Ç=HÈHÈHÈHÈH9È8H9Úargscór—|s#t|jj««}i}i}|D]s}    |j|j«Dcgc]\}}|dk7r|j    d«s||f‘Œ!c}}D]%\}}||vs |||dksŒ|d||<|d||<Œ'Œu|Scc}}w#t
$rYŒ‰wxYw)aReturns options as a dictionary.
 
        Returns options from all the groups specified as arguments, returns
        the options from all groups if no argument provided. Options are
        overridden when they are found in the next group.
 
        Returns a dictionary
        Ú__name__ú!r r)ÚtuplerErƒr'r^r#)rNrŽÚoptionsr‡r6Úkeyr8r7s        r<Ú
get_groupszMySQLOptionsParser.get_groupssð€ñܘ×+Ñ+×0Ñ0Ó2Ó3ˆDàˆØ#%ˆØò    ˆEð ð '+×&8Ñ&8¸Ñ&?×&EÑ&EÓ&G÷ &ñ
#˜˜UؘjÒ(°·±ÀÔ1Dð    Øòó&ò
3‘MF˜Eð WÑ,°¸Ñ0@ÀEÈ!ÁHÓ0LØ+0°©8˜ Ñ(Ø*/°©(˜ šñ
3ð    ð ˆùó&øôò Ùð ús)° B*Á$B$Á4B*ÂB*Â$B*Â*    B6Â5B6cóâ—|s#t|jj««}i}|D]3}    td„|j|j    «D««||<Œ5|S#t
$rYŒCwxYw)a3Returns options as dictionary of dictionaries.
 
        Returns options from all the groups specified as arguments. For each
        group the option are contained in a dictionary. The order in which
        the groups are specified is unimportant. Also options are not
        overridden in between the groups.
 
        The value is a tuple with two elements, first being the actual value
        and second is the priority of the value which is higher for a value
        read from a higher priority file.
 
        Returns an dictionary of dictionaries
        c3óVK—|]!\}}|dk7r|jd«s||f–—Œ#y­w)rr‘N©r^©Ú.0r”r8s   r<ú    <genexpr>zFMySQLOptionsParser.get_groups_as_dict_with_priority.<locals>.<genexpr>Hs9èø€ò&ñ
#˜˜UؘjÒ(°·±ÀÔ1Dð    Øôñ&ùs‚')©r’rErƒÚdictr'r#©rNrŽr“r6s    r<r&z3MySQLOptionsParser.get_groups_as_dict_with_priority2s…€ñ Ü˜×+Ñ+×0Ñ0Ó2Ó3ˆDàˆØò     ˆEð
Ü!%ñ&ð
'+×&8Ñ&8¸Ñ&?×&EÑ&EÓ&Gô &ó"˜’ð     ðˆøôò Ùð úó®0A"Á"    A.Á-A.cóâ—|s#t|jj««}i}|D]3}    td„|j|j    «D««||<Œ5|S#t
$rYŒCwxYw)aoReturns options as dictionary of dictionaries.
 
        Returns options from all the groups specified as arguments. For each
        group the option are contained in a dictionary. The order in which
        the groups are specified is unimportant. Also options are not
        overridden in between the groups.
 
        Returns an dictionary of dictionaries
        c3ó\K—|]$\}}|dk7r|jd«s    ||df–—Œ&y­w)rr‘rNr˜r™s   r<r›z8MySQLOptionsParser.get_groups_as_dict.<locals>.<genexpr>ds=èø€ò&ñ
#˜˜UؘjÒ(°·±ÀÔ1Dð    Ø˜a™ôñ&ùs‚*,rœržs    r<rLz%MySQLOptionsParser.get_groups_as_dictTs…€ñܘ×+Ñ+×0Ñ0Ó2Ó3ˆDàˆØò     ˆEð
Ü!%ñ&ð
'+×&8Ñ&8¸Ñ&?×&EÑ&EÓ&Gô &ó"˜’ð     ðˆøôò Ùð úrŸ)NT)N)rÚ
__module__Ú __qualname__Ú__doc__rr
rr"ÚboolrGrUrKrirr•r    Úintr&rL©rOr<r$r$ys„ÙCðRVñNؘe D¨¡I¨s NÑ3Ñ4ðNØJNðNà     óNðB! Sð!¨Só!ð2X D¨¡Ið2X°$ó2XðjKOñ5ؘs D¨¡I˜~Ñ.ð5Ø:BÀ3¹-ð5à     ˆc‰ó5ðn ð¨¨S°#¨X©óð@ Øð à     ˆc4˜˜U 3¨ 8™_Ð,Ñ-Ð-Ñ    .ó ðD¨ð°°S¸$¸sÀC¸x¹.Ð5HÑ0IôrOr$)r¤r,r}r{rHrBÚ configparserrrFrÚtypingrrrrr    r
Ú    constantsr r rr"Ú__annotations__r=r$r§rOr<ú<module>r¬s‰ðò>5ã
Û Û    Û    Û    çTß:×:ç;ð Ø ñ2АD˜˜e C¨ H™oÐ-Ñ.óð D  c¨4°©9 nÑ 5ðD¸$¸sÀC¸x¹.óDôNvÐ)õvrO