hyb
2025-12-30 399ffc4d9829f70529d3b096fe4228f7496cc566
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
Ë
Wñúhµãón—dZddgZddlZddlZddlZ    ddlZddlmZm    Z    m
Z
m Z erddl m Z ejd«Gd„d    ej«ZGd
„dej j"«Z    dd d œd ededede    de ej(eff
d„Zde
de    de    dej,fd„Zy#e$rdZYŒ›wxYw)z
Utilities.Ú    to_threadÚopen_connectionéN)Ú TYPE_CHECKINGÚAnyÚCallableÚTuple)ÚMySQLConnectionAbstractÚ StreamWritercó4—eZdZdZdej
ddfd„Zy)ÚStreamReaderProtocolzìExtends asyncio.streams.StreamReaderProtocol for adding start_tls().
 
    The ``start_tls()`` is based on ``asyncio.streams.StreamWriter`` introduced
    in Python 3.11. It provides the same functionality for older Python versions.
    ÚwriterÚreturnNcóh—|j}||_||_|jd«du|_y)zQReplace stream writer.
 
        Args:
            writer: Stream Writer.
        Ú
sslcontextN)Ú    transportÚ_stream_writerÚ
_transportÚget_extra_infoÚ    _over_ssl)Úselfr rs   úLH:\Change_password\venv_build\Lib\site-packages\mysql/connector/aio/utils.pyÚ_replace_writerz$StreamReaderProtocol._replace_writer<s5€ð ×$Ñ$ˆ    Ø$ˆÔØ#ˆŒØ"×1Ñ1°,Ó?ÀtÐKˆó)Ú__name__Ú
__module__Ú __qualname__Ú__doc__Úasyncior
r©rrr r 5s#„ñð     L g×&:Ñ&:ð    L¸tô    Lrr c    óD—eZdZdZdddœdej
dededdfd„Zy)    r
zäExtends asyncio.streams.StreamWriter for adding start_tls().
 
    The ``start_tls()`` is based on ``asyncio.streams.StreamWriter`` introduced
    in Python 3.11. It provides the same functionality for older Python versions.
    N)Úserver_hostnameÚssl_handshake_timeoutÚ ssl_contextr!r"rcƒó"K—|jjdu}|j}|j«ƒd{–—†|jj    |j
|||||¬«ƒd{–—†}||_|j |«y7ŒP7Œ­w)zåUpgrade an existing stream-based connection to TLS.
 
        Args:
            ssl_context: Configured SSL context.
            server_hostname: Server host name.
            ssl_handshake_timeout: SSL handshake timeout.
        N)Ú server_sider!r")Ú    _protocolÚ_client_connected_cbÚdrainÚ_loopÚ    start_tlsrr)rr#r!r"r%ÚprotocolÚ new_transports       rr*zStreamWriter.start_tlsOsèø€ð—n‘n×9Ñ9ÀÐEˆ Ø—>‘>ˆØj‰j‹l×ÐØ"Ÿj™j×2Ñ2à O‰OØ Ø Ø#Ø+Ø"7ð3ó
÷
ˆ ð ð     Œð    × Ñ  Õ&ð    øð
ús!‚8BºB »2BÁ-B Á.B B)    rrrrÚsslÚ
SSLContextÚstrÚintr*rrrr
r
Hs>„ñð $Ø%)ò 'à—^‘^ð'ðð    'ð
 #ð 'ð
ô 'ri)ÚlimitÚhostÚportr1Úkwdsrc‹óþ‡    K—tj«}tjj||¬«}t    ||¬«Š    |j
ˆ    fd„||fi|¤Žƒd{–—†\}}t |‰    ||«}||fS7Œ­w)aA wrapper for create_connection() returning a (reader, writer) pair.
 
    This function is based on ``asyncio.streams.open_connection`` and adds a custom
    stream reader.
 
    MySQL expects TLS negotiation to happen in the middle of a TCP connection, not at
    the start.
    This function in conjunction with ``_StreamReaderProtocol`` and ``_StreamWriter``
    allows the TLS negotiation on an existing connection.
 
    Args:
        host: Server host name.
        port: Server port.
        limit: The buffer size limit used by the returned ``StreamReader`` instance.
               By default the limit is set to 64 KiB.
 
    Returns:
        tuple: Returns a pair of reader and writer objects that are instances of
               ``StreamReader`` and ``StreamWriter`` classes.
    )r1Úloop)r6có•—‰S)Nr)r+s€rú<lambda>z!open_connection.<locals>.<lambda>‰sø€¸€rN)rÚget_running_loopÚstreamsÚ StreamReaderr Úcreate_connectionr
)
r2r3r1r4r6ÚreaderrÚ_r r+s
         @rrros€øèø€ô. × #Ñ #Ó %€DÜ _‰_× )Ñ )°¸DÐ )Ó A€FÜ# F°Ô6€HØ/˜×/Ñ/Ó0@À$ÈÑUÐPTÑU×UL€IˆqÜ ˜) X¨v°tÓ <€FØ 6ˆ>ÐðVúsƒAA=Á!A;Á"A=ÚfuncÚargsÚkwargscóÚK—tj«}tj«}t    j
|j |g|¢­i|¤Ž}|jd|«ƒd{–—†S7Œ­w)aQAsynchronously run function ``func`` in a separate thread.
 
    This function is based on ``asyncio.to_thread()`` introduced in Python 3.9, which
    provides the same functionality for older Python versions.
 
    Returns:
        coroutine: A coroutine that can be awaited to get the eventual result of
                   ``func``.
    N)rr9Ú contextvarsÚ copy_contextÚ    functoolsÚpartialÚrunÚrun_in_executor)r?r@rAr6ÚctxÚ    func_calls      rrrŽs]èø€ô × #Ñ #Ó %€DÜ
$€CÜ×!Ñ! #§'¡'¨4ÐA°$ÒA¸&ÑA€IØ×%Ñ% d¨IÓ6× 6Ð6Ð 6ús‚A"A+Á$A)Á%A+)NN)rÚ__all__rrCrEr-Ú ImportErrorÚtypingrrrrÚmysql.connector.aio.abstractsr    Úappendr r:r
r/r0r;rÚFuturerrrrú<module>rQsòðñ@à Ð)Ð
*€ãÛÛðÛ÷7Ó6áÝEà ‡NN>Ô"ôL˜7×7Ñ7ôLô&$'7—?‘?×/Ñ/ô$'ðP#'ðØ8=òØ
ðØðØ25ðØGJðà
ˆ7× Ñ  Ð -Ñ.óð> 7˜(ð 7¨3ð 7¸#ð 7À'Ç.Á.ô 7øðIòØ
‚Cðús”B*Â*B4Â3B4