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 a6baac2 commit 1617961Copy full SHA for 1617961
1 file changed
Objects/weakrefobject.c
@@ -576,8 +576,7 @@ _proxy_unwrap(PyObject **op, int *did_incref)
576
static PyObject * \
577
method(PyObject *proxy) { \
578
int proxy_incref = 0; \
579
- if (!_proxy_unwrap(&proxy, &proxy_incref)) \
580
- return NULL; \
+ UNWRAP(proxy); \
581
PyObject* res = generic(proxy); \
582
Py_DECREF(proxy); \
583
return res; \
@@ -631,8 +630,7 @@ _proxy_unwrap(PyObject **op, int *did_incref)
631
630
632
method(PyObject *proxy, PyObject *Py_UNUSED(ignored)) { \
633
634
635
636
PyObject* res = PyObject_CallMethodNoArgs(proxy, &_Py_ID(SPECIAL)); \
637
638
0 commit comments