diff options
author | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2003-07-08 06:29:56 +0000 |
---|---|---|
committer | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2003-07-08 06:29:56 +0000 |
commit | a0bbac3bd4e68495cd85d7f714553a35f0c6247e (patch) | |
tree | 855ebef3bc5402f17cd6b1422e08b25d2e906608 | |
parent | 0fccc960c198609c24e7236970f9fdebe62f6c19 (diff) | |
download | mysqldb1-a0bbac3bd4e68495cd85d7f714553a35f0c6247e.tar.gz |
Bump version and remove some unneccesary casts that seem to
break things when using Python 2.3.
-rw-r--r-- | MySQLdb/_mysql.c | 14 |
1 files 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; |