zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
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
U
£ý°d ã@s\UdZddlmZmZmZdgZeeed<ddlm    Z    d ee
efeeedœd    d„Z d
S) z Translations.é)ÚListÚOptionalÚUnionÚget_client_errorÚ__all__é)Ú    errorcodeÚeng)ÚerrorÚlanguageÚreturncCs¸ztd|›tƒtƒdgƒ}Wn&tk
rDtd|›dƒd‚YnX|j}t|tƒr~|}tj     ¡D]\}}||krd|}q~qdt|t
ƒr¬z t ||ƒWSt k
rªYdSXt dƒ‚dS)a°Lookup client error
 
    This function will lookup the client error message based on the given
    error and return the error message. If the error was not found,
    None will be returned.
 
    Error can be either an integer or a string. For example:
        error: 2000
        error: CR_UNKNOWN_ERROR
 
    The language attribute can be used to retrieve a localized message, when
    available.
 
    Returns a string or None.
    zmysql.connector.locales.Ú client_errorz&No localization support for language 'ú'Nz6error argument needs to be either an integer or string)Ú
__import__ÚglobalsÚlocalsÚ ImportErrorr Ú
isinstanceÚintrÚ__dict__ÚitemsÚstrÚgetattrÚAttributeErrorÚ
ValueError)r
r Útmpr ÚerrnoÚkeyÚvalue©rúWd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\mysql/connector/locales/__init__.pyr&s4ü
ÿþ
 
 N)r    ) Ú__doc__ÚtypingrrrrrÚ__annotations__Úrrrrrrr Ú<module>s