@@ -68,7 +68,7 @@ static PyObject *_mysql_IntegrityError;
68
68
static PyObject * _mysql_InternalError ;
69
69
static PyObject * _mysql_ProgrammingError ;
70
70
static PyObject * _mysql_NotSupportedError ;
71
-
71
+
72
72
typedef struct {
73
73
PyObject_HEAD
74
74
MYSQL connection ;
@@ -227,7 +227,7 @@ _mysql_Exception(_mysql_ConnectionObject *c)
227
227
Py_DECREF (t );
228
228
return NULL ;
229
229
}
230
-
230
+
231
231
static char _mysql_server_init__doc__ [] =
232
232
"Initialize embedded server. If this client is not linked against\n\
233
233
the embedded server library, this function does nothing.\n\
@@ -250,7 +250,7 @@ static PyObject *_mysql_server_init(
250
250
"already initialized" );
251
251
return NULL ;
252
252
}
253
-
253
+
254
254
if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|OO" , kwlist ,
255
255
& cmd_args , & groups ))
256
256
return NULL ;
@@ -349,7 +349,7 @@ static PyObject *_mysql_server_end(
349
349
}
350
350
return _mysql_Exception (NULL );
351
351
}
352
-
352
+
353
353
#if MYSQL_VERSION_ID >= 32314
354
354
static char _mysql_thread_safe__doc__ [] =
355
355
"Indicates whether the client is compiled as thread-safe." ;
@@ -557,7 +557,7 @@ _mysql_ConnectionObject_Initialize(
557
557
char * init_command = NULL ,
558
558
* read_default_file = NULL ,
559
559
* read_default_group = NULL ;
560
-
560
+
561
561
self -> converter = NULL ;
562
562
self -> open = 0 ;
563
563
check_server_init (-1 );
@@ -741,7 +741,7 @@ _mysql_connect(
741
741
PyObject * kwargs )
742
742
{
743
743
_mysql_ConnectionObject * c = NULL ;
744
-
744
+
745
745
c = MyAlloc (_mysql_ConnectionObject , _mysql_ConnectionObject_Type );
746
746
if (c == NULL ) return NULL ;
747
747
if (_mysql_ConnectionObject_Initialize (c , args , kwargs )) {
@@ -1291,7 +1291,7 @@ _mysql_escape_dict(
1291
1291
Py_XDECREF (r );
1292
1292
return NULL ;
1293
1293
}
1294
-
1294
+
1295
1295
static char _mysql_ResultObject_describe__doc__ [] =
1296
1296
"Returns the sequence of 7-tuples required by the DB-API for\n\
1297
1297
the Cursor.description attribute.\n\
@@ -1328,7 +1328,7 @@ _mysql_ResultObject_describe(
1328
1328
Py_XDECREF (d );
1329
1329
return NULL ;
1330
1330
}
1331
-
1331
+
1332
1332
static char _mysql_ResultObject_field_flags__doc__ [] =
1333
1333
"Returns a tuple of field flags, one for each column in the result.\n\
1334
1334
" ;
@@ -1736,7 +1736,7 @@ _mysql_ConnectionObject_get_character_set_info(
1736
1736
{
1737
1737
PyObject * result ;
1738
1738
MY_CHARSET_INFO cs ;
1739
-
1739
+
1740
1740
if (!PyArg_ParseTuple (args , "" )) return NULL ;
1741
1741
check_connection (self );
1742
1742
mysql_get_character_set_info (& (self -> connection ), & cs );
@@ -2726,44 +2726,44 @@ PyTypeObject _mysql_ConnectionObject_Type = {
2726
2726
0 , /* tp_setattr */
2727
2727
0 , /*tp_compare*/
2728
2728
(reprfunc )_mysql_ConnectionObject_repr , /* tp_repr */
2729
-
2729
+
2730
2730
/* Method suites for standard classes */
2731
-
2731
+
2732
2732
0 , /* (PyNumberMethods *) tp_as_number */
2733
2733
0 , /* (PySequenceMethods *) tp_as_sequence */
2734
2734
0 , /* (PyMappingMethods *) tp_as_mapping */
2735
-
2735
+
2736
2736
/* More standard operations (here for binary compatibility) */
2737
-
2737
+
2738
2738
0 , /* (hashfunc) tp_hash */
2739
2739
0 , /* (ternaryfunc) tp_call */
2740
2740
0 , /* (reprfunc) tp_str */
2741
2741
(getattrofunc )_mysql_ConnectionObject_getattro , /* tp_getattro */
2742
2742
(setattrofunc )_mysql_ConnectionObject_setattro , /* tp_setattro */
2743
-
2743
+
2744
2744
/* Functions to access object as input/output buffer */
2745
2745
0 , /* (PyBufferProcs *) tp_as_buffer */
2746
-
2746
+
2747
2747
/* (tp_flags) Flags to define presence of optional/expanded features */
2748
2748
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE ,
2749
2749
_mysql_connect__doc__ , /* (char *) tp_doc Documentation string */
2750
2750
2751
2751
/* call function for all accessible objects */
2752
2752
(traverseproc ) _mysql_ConnectionObject_traverse , /* tp_traverse */
2753
-
2753
+
2754
2754
/* delete references to contained objects */
2755
2755
(inquiry ) _mysql_ConnectionObject_clear , /* tp_clear */
2756
2756
2757
2757
/* rich comparisons */
2758
2758
0 , /* (richcmpfunc) tp_richcompare */
2759
-
2759
+
2760
2760
/* weak reference enabler */
2761
2761
0 , /* (long) tp_weaklistoffset */
2762
2762
2763
2763
/* Iterators */
2764
2764
0 , /* (getiterfunc) tp_iter */
2765
2765
0 , /* (iternextfunc) tp_iternext */
2766
-
2766
+
2767
2767
/* Attribute descriptor and subclassing stuff */
2768
2768
(struct PyMethodDef * )_mysql_ConnectionObject_methods , /* tp_methods */
2769
2769
(struct PyMemberDef * )_mysql_ConnectionObject_memberlist , /* tp_members */
@@ -2798,45 +2798,45 @@ PyTypeObject _mysql_ResultObject_Type = {
2798
2798
0 , /* tp_setattr */
2799
2799
0 , /*tp_compare*/
2800
2800
(reprfunc )_mysql_ResultObject_repr , /* tp_repr */
2801
-
2801
+
2802
2802
/* Method suites for standard classes */
2803
-
2803
+
2804
2804
0 , /* (PyNumberMethods *) tp_as_number */
2805
2805
0 , /* (PySequenceMethods *) tp_as_sequence */
2806
2806
0 , /* (PyMappingMethods *) tp_as_mapping */
2807
-
2807
+
2808
2808
/* More standard operations (here for binary compatibility) */
2809
-
2809
+
2810
2810
0 , /* (hashfunc) tp_hash */
2811
2811
0 , /* (ternaryfunc) tp_call */
2812
2812
0 , /* (reprfunc) tp_str */
2813
2813
(getattrofunc )PyObject_GenericGetAttr , /* tp_getattro */
2814
2814
(setattrofunc )_mysql_ResultObject_setattro , /* tp_setattr */
2815
-
2815
+
2816
2816
/* Functions to access object as input/output buffer */
2817
2817
0 , /* (PyBufferProcs *) tp_as_buffer */
2818
-
2818
+
2819
2819
/* Flags to define presence of optional/expanded features */
2820
2820
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE ,
2821
-
2821
+
2822
2822
_mysql_ResultObject__doc__ , /* (char *) tp_doc Documentation string */
2823
2823
2824
2824
/* call function for all accessible objects */
2825
2825
(traverseproc ) _mysql_ResultObject_traverse , /* tp_traverse */
2826
-
2826
+
2827
2827
/* delete references to contained objects */
2828
2828
(inquiry ) _mysql_ResultObject_clear , /* tp_clear */
2829
2829
2830
2830
/* rich comparisons */
2831
2831
0 , /* (richcmpfunc) tp_richcompare */
2832
-
2832
+
2833
2833
/* weak reference enabler */
2834
2834
0 , /* (long) tp_weaklistoffset */
2835
2835
2836
2836
/* Iterators */
2837
2837
0 , /* (getiterfunc) tp_iter */
2838
2838
0 , /* (iternextfunc) tp_iternext */
2839
-
2839
+
2840
2840
/* Attribute descriptor and subclassing stuff */
2841
2841
(struct PyMethodDef * ) _mysql_ResultObject_methods , /* tp_methods */
2842
2842
(struct PyMemberDef * ) _mysql_ResultObject_memberlist , /*tp_members */
0 commit comments