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

Method _request_authentication

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

Source from the content-addressed store, hash-verified

995 fileno = -1
996
997 def _request_authentication():
998 nonlocal sock, rfile, fileno
999 sock = con._sock
1000 assert sock is not None
1001 fileno = sock.fileno()
1002 rfile = con._rfile
1003 assert rfile is not None
1004 raise TypeError
1005
1006 con._request_authentication = _request_authentication
1007

Calls

no outgoing calls

Tested by

no test coverage detected