From a0bbac3bd4e68495cd85d7f714553a35f0c6247e Mon Sep 17 00:00:00 2001 From: adustman Date: Tue, 8 Jul 2003 06:29:56 +0000 Subject: [PATCH] Bump version and remove some unneccesary casts that seem to break things when using Python 2.3. --- MySQLdb/_mysql.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MySQLdb/_mysql.c b/MySQLdb/_mysql.c index b1da50c..0f6c0fc 100644 --- a/MySQLdb/_mysql.c +++ b/MySQLdb/_mysql.c @@ -1,4 +1,4 @@ -#define version_info "(0,9,3,'alpha',1)" +#define version_info "(0,9,3,'alpha',2)" #define __version__ "0.9.3" /* This program is free software; you can redistribute it and/or modify @@ -2351,12 +2351,12 @@ init_mysql(void) _mysql_ConnectionObject_Type.ob_type = &PyType_Type; _mysql_ResultObject_Type.ob_type = &PyType_Type; #if PY_VERSION_HEX >= 0x02020000 - _mysql_ConnectionObject_Type.tp_alloc = (allocfunc)PyType_GenericAlloc; - _mysql_ConnectionObject_Type.tp_new = (newfunc)PyType_GenericNew; - _mysql_ConnectionObject_Type.tp_free = (destructor)_PyObject_GC_Del; - _mysql_ResultObject_Type.tp_alloc = (allocfunc)PyType_GenericAlloc; - _mysql_ResultObject_Type.tp_new = (newfunc)PyType_GenericNew; - _mysql_ResultObject_Type.tp_free = (destructor)_PyObject_GC_Del; + _mysql_ConnectionObject_Type.tp_alloc = PyType_GenericAlloc; + _mysql_ConnectionObject_Type.tp_new = PyType_GenericNew; + _mysql_ConnectionObject_Type.tp_free = _PyObject_GC_Del; + _mysql_ResultObject_Type.tp_alloc = PyType_GenericAlloc; + _mysql_ResultObject_Type.tp_new = PyType_GenericNew; + _mysql_ResultObject_Type.tp_free = _PyObject_GC_Del; #endif if (!(dict = PyModule_GetDict(module))) goto error;