Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove _mysql.thread_safe() #311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions 16 MySQLdb/_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,6 @@ _get_encoding(MYSQL *mysql)
return cs.csname;
}

static char _mysql_thread_safe__doc__[] =
"Indicates whether the client is compiled as thread-safe.";

static PyObject *_mysql_thread_safe(
PyObject *self,
PyObject *noargs)
{
return PyInt_FromLong((long)mysql_thread_safe());
}

static char _mysql_ResultObject__doc__[] =
"result(connection, use=0, converter={}) -- Result set from a query.\n\
\n\
Expand Down Expand Up @@ -2585,12 +2575,6 @@ _mysql_methods[] = {
METH_NOARGS,
_mysql_get_client_info__doc__
},
{
"thread_safe",
(PyCFunction)_mysql_thread_safe,
METH_NOARGS,
_mysql_thread_safe__doc__
},
{NULL, NULL} /* sentinel */
};

Expand Down
1 change: 0 additions & 1 deletion 1 doc/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ MySQL C API function mapping
``mysql_stat()`` ``conn.stat()``
``mysql_store_result()`` ``conn.store_result()``
``mysql_thread_id()`` ``conn.thread_id()``
``mysql_thread_safe_client()`` ``conn.thread_safe_client()``
``mysql_use_result()`` ``conn.use_result()``
``mysql_warning_count()`` ``conn.warning_count()``
``CLIENT_*`` ``MySQLdb.constants.CLIENT.*``
Expand Down
3 changes: 0 additions & 3 deletions 3 tests/test_MySQLdb_nonstandard.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ def test_version(self):
def test_client_info(self):
self.assertTrue(isinstance(_mysql.get_client_info(), str))

def test_thread_safe(self):
self.assertTrue(isinstance(_mysql.thread_safe(), int))

def test_escape_string(self):
self.assertEqual(_mysql.escape_string(b'foo"bar'),
b'foo\\"bar', "escape byte string")
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.