Skip to content

Commit d2f00ff

Browse files
committed
Oooof. Don't use internals.
1 parent cd1bb9c commit d2f00ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lazy_object_proxy/cext.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ static PyObject *Proxy_str(ProxyObject *self)
224224

225225
static PyObject *Proxy_fspath(ProxyObject *self)
226226
{
227-
_Py_IDENTIFIER(__fspath__);
228227
Proxy__ENSURE_WRAPPED_OR_RETURN_NULL(self);
229228
PyObject *func = NULL;
230229
PyObject *fspath = NULL;
@@ -234,7 +233,7 @@ static PyObject *Proxy_fspath(ProxyObject *self)
234233
return self->wrapped;
235234
}
236235

237-
func = _PyObject_LookupSpecial(self->wrapped, &PyId___fspath__);
236+
func = PyObject_GetAttrString(self->wrapped, "__fspath__");
238237
if (NULL == func) {
239238
Py_INCREF(self->wrapped);
240239
return self->wrapped;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy