File tree 3 files changed +0
-20
lines changed
3 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -225,16 +225,6 @@ _get_encoding(MYSQL *mysql)
225
225
return cs .csname ;
226
226
}
227
227
228
- static char _mysql_thread_safe__doc__ [] =
229
- "Indicates whether the client is compiled as thread-safe." ;
230
-
231
- static PyObject * _mysql_thread_safe (
232
- PyObject * self ,
233
- PyObject * noargs )
234
- {
235
- return PyInt_FromLong ((long )mysql_thread_safe ());
236
- }
237
-
238
228
static char _mysql_ResultObject__doc__ [] =
239
229
"result(connection, use=0, converter={}) -- Result set from a query.\n\
240
230
\n\
@@ -2585,12 +2575,6 @@ _mysql_methods[] = {
2585
2575
METH_NOARGS ,
2586
2576
_mysql_get_client_info__doc__
2587
2577
},
2588
- {
2589
- "thread_safe" ,
2590
- (PyCFunction )_mysql_thread_safe ,
2591
- METH_NOARGS ,
2592
- _mysql_thread_safe__doc__
2593
- },
2594
2578
{NULL , NULL } /* sentinel */
2595
2579
};
2596
2580
Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ MySQL C API function mapping
89
89
``mysql_stat() `` ``conn.stat() ``
90
90
``mysql_store_result() `` ``conn.store_result() ``
91
91
``mysql_thread_id() `` ``conn.thread_id() ``
92
- ``mysql_thread_safe_client() `` ``conn.thread_safe_client() ``
93
92
``mysql_use_result() `` ``conn.use_result() ``
94
93
``mysql_warning_count() `` ``conn.warning_count() ``
95
94
``CLIENT_* `` ``MySQLdb.constants.CLIENT.* ``
Original file line number Diff line number Diff line change @@ -35,9 +35,6 @@ def test_version(self):
35
35
def test_client_info (self ):
36
36
self .assertTrue (isinstance (_mysql .get_client_info (), str ))
37
37
38
- def test_thread_safe (self ):
39
- self .assertTrue (isinstance (_mysql .thread_safe (), int ))
40
-
41
38
def test_escape_string (self ):
42
39
self .assertEqual (_mysql .escape_string (b'foo"bar' ),
43
40
b'foo\\ "bar' , "escape byte string" )
You can’t perform that action at this time.
0 commit comments