File tree 1 file changed +1
-15
lines changed
1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,7 @@ PERFORMANCE OF THIS SOFTWARE.
51
51
#include "errmsg.h"
52
52
53
53
#define MyAlloc (s ,t ) (s *) t.tp_alloc(&t,0)
54
- #ifdef IS_PY3K
55
- # define MyFree (o ) Py_TYPE(o)->tp_free((PyObject*)o)
56
- #else
57
- # define MyFree (ob ) ob->ob_type->tp_free((PyObject *)ob)
58
- #endif
54
+ #define MyFree (o ) Py_TYPE(o)->tp_free((PyObject*)o)
59
55
60
56
static PyObject * _mysql_MySQLError ;
61
57
static PyObject * _mysql_Warning ;
@@ -2643,12 +2639,7 @@ _mysql_ResultObject_setattro(
2643
2639
}
2644
2640
2645
2641
PyTypeObject _mysql_ConnectionObject_Type = {
2646
- #ifdef IS_PY3K
2647
2642
PyVarObject_HEAD_INIT (NULL , 0 )
2648
- #else
2649
- PyObject_HEAD_INIT (NULL )
2650
- 0 ,
2651
- #endif
2652
2643
"_mysql.connection" , /* (char *)tp_name For printing */
2653
2644
sizeof (_mysql_ConnectionObject ),
2654
2645
0 ,
@@ -2715,12 +2706,7 @@ PyTypeObject _mysql_ConnectionObject_Type = {
2715
2706
} ;
2716
2707
2717
2708
PyTypeObject _mysql_ResultObject_Type = {
2718
- #ifdef IS_PY3K
2719
2709
PyVarObject_HEAD_INIT (NULL , 0 )
2720
- #else
2721
- PyObject_HEAD_INIT (NULL )
2722
- 0 ,
2723
- #endif
2724
2710
"_mysql.result" ,
2725
2711
sizeof (_mysql_ResultObject ),
2726
2712
0 ,
You can’t perform that action at this time.
0 commit comments