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 cd1bb9c commit d2f00ffCopy full SHA for d2f00ff
src/lazy_object_proxy/cext.c
@@ -224,7 +224,6 @@ static PyObject *Proxy_str(ProxyObject *self)
224
225
static PyObject *Proxy_fspath(ProxyObject *self)
226
{
227
- _Py_IDENTIFIER(__fspath__);
228
Proxy__ENSURE_WRAPPED_OR_RETURN_NULL(self);
229
PyObject *func = NULL;
230
PyObject *fspath = NULL;
@@ -234,7 +233,7 @@ static PyObject *Proxy_fspath(ProxyObject *self)
234
233
return self->wrapped;
235
}
236
237
- func = _PyObject_LookupSpecial(self->wrapped, &PyId___fspath__);
+ func = PyObject_GetAttrString(self->wrapped, "__fspath__");
238
if (NULL == func) {
239
Py_INCREF(self->wrapped);
240
0 commit comments