From 93bdbb74256a27554cb5a5305b3f74d15aaa6356 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Fri, 17 Oct 2008 03:30:07 +0000 Subject: [PATCH] Replace PyBytes_ with cxString to make Python 3.x happy. --- Cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cursor.c b/Cursor.c index 94ca8ee..bcdbdbc 100644 --- a/Cursor.c +++ b/Cursor.c @@ -1316,7 +1316,7 @@ static int Cursor_Call( Py_DECREF(arguments); // create the statement object - format = PyBytes_FromString(statement); + format = cxString_FromAscii(statement); PyMem_Free(statement); if (!format) { Py_DECREF(bindVariables);