mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
Simplify converters (#304)
This commit is contained in:
@ -2730,9 +2730,6 @@ init_mysql(void)
|
||||
_mysql_NewException(dict, edict, "NotSupportedError")))
|
||||
goto error;
|
||||
Py_DECREF(emod);
|
||||
if (!(_mysql_NULL = PyString_FromString("NULL")))
|
||||
goto error;
|
||||
if (PyDict_SetItemString(dict, "NULL", _mysql_NULL)) goto error;
|
||||
error:
|
||||
if (PyErr_Occurred()) {
|
||||
PyErr_SetString(PyExc_ImportError, "_mysql: init failed");
|
||||
|
Reference in New Issue
Block a user