Simplify converters (#304)

This commit is contained in:
INADA Naoki
2018-12-07 13:50:05 +09:00
committed by GitHub
parent 5e8eeac47f
commit 819688b630
3 changed files with 8 additions and 32 deletions

View File

@ -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");