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

Function install_as_MySQLdb

pymysql/__init__.py:65–70  ·  view source on GitHub ↗

After this function is called, any application that imports MySQLdb will unwittingly actually use pymysql.

()

Source from the content-addressed store, hash-verified

63
64
65def install_as_MySQLdb():
66 """
67 After this function is called, any application that imports MySQLdb
68 will unwittingly actually use pymysql.
69 """
70 sys.modules["MySQLdb"] = sys.modules["pymysql"]
71
72
73# end of mysqlclient compatibility code

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected