Replace PyBytes_ with cxString to make Python 3.x happy.

This commit is contained in:
Anthony Tuininga 2008-10-17 03:30:07 +00:00
parent 49f9c14f97
commit 93bdbb7425

View File

@ -1316,7 +1316,7 @@ static int Cursor_Call(
Py_DECREF(arguments); Py_DECREF(arguments);
// create the statement object // create the statement object
format = PyBytes_FromString(statement); format = cxString_FromAscii(statement);
PyMem_Free(statement); PyMem_Free(statement);
if (!format) { if (!format) {
Py_DECREF(bindVariables); Py_DECREF(bindVariables);