MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / _request_authentication

Method _request_authentication

pymysql/tests/test_connection.py:1024–1031  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1022 fileno = -1
1023
1024 def _request_authentication():
1025 nonlocal sock, rfile, fileno
1026 sock = con._sock
1027 assert sock is not None
1028 fileno = sock.fileno()
1029 rfile = con._rfile
1030 assert rfile is not None
1031 raise TypeError
1032
1033 con._request_authentication = _request_authentication
1034

Calls

no outgoing calls

Tested by

no test coverage detected