diff options
author | fsbs <fsbs@users.noreply.github.com> | 2021-10-19 16:36:40 +0000 |
---|---|---|
committer | fsbs <fsbs@users.noreply.github.com> | 2021-10-19 18:36:40 +0200 |
commit | 6b4fee4c3c18928f859c87641992762a1224b4b5 (patch) | |
tree | a4e04f8db24d32590488fa242126c6bf43869169 /src/multi.c | |
parent | f9cd5e710fc33fcb127a856385c9f21a1874e998 (diff) | |
download | pycurl-6b4fee4c3c18928f859c87641992762a1224b4b5.tar.gz |
assert Curl_Type instance instead of type
Diffstat (limited to 'src/multi.c')
-rw-r--r-- | src/multi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multi.c b/src/multi.c index 1ec5e19..d7677c5 100644 --- a/src/multi.c +++ b/src/multi.c @@ -797,7 +797,7 @@ do_multi_info_read(CurlMultiObject *self, PyObject *args) Py_DECREF(ok_list); CURLERROR_MSG("Unable to fetch curl handle from curl object"); } - assert(Py_TYPE(co) == p_Curl_Type); + assert(PyObject_IsInstance((PyObject *) co, (PyObject *) p_Curl_Type) == 1); if (msg->msg != CURLMSG_DONE) { /* FIXME: what does this mean ??? */ } |