We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bec9c76 commit ddf4a6aCopy full SHA for ddf4a6a
1 file changed
Objects/weakrefobject.c
@@ -561,8 +561,7 @@ _proxy_unwrap(PyObject **op, int *did_incref)
561
static PyObject * \
562
method(PyObject *proxy) { \
563
int proxy_incref = 0; \
564
- if (!_proxy_unwrap(&proxy, &proxy_incref)) \
565
- return NULL; \
+ UNWRAP(proxy); \
566
PyObject* res = generic(proxy); \
567
Py_DECREF(proxy); \
568
return res; \
@@ -616,8 +615,7 @@ _proxy_unwrap(PyObject **op, int *did_incref)
616
615
617
method(PyObject *proxy, PyObject *Py_UNUSED(ignored)) { \
618
619
620
621
PyObject* res = PyObject_CallMethodNoArgs(proxy, &_Py_ID(SPECIAL)); \
622
623
0 commit comments