After this function is called, any application that imports MySQLdb will unwittingly actually use pymysql.
()
| 63 | |
| 64 | |
| 65 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected