Home
last modified time | relevance | path

Searched refs:path_repr (Results 1 - 2 of 2) sorted by relevance

/third_party/python/Lib/
H A Dos.py1051 path_repr = path_type.__fspath__(path)
1058 if isinstance(path_repr, (str, bytes)):
1059 return path_repr
1063 type(path_repr).__name__))
/third_party/python/Modules/
H A Dposixmodule.c14571 PyObject *path_repr = NULL; in PyOS_FSPath() local
14586 path_repr = _PyObject_CallNoArgs(func); in PyOS_FSPath()
14588 if (NULL == path_repr) { in PyOS_FSPath()
14592 if (!(PyUnicode_Check(path_repr) || PyBytes_Check(path_repr))) { in PyOS_FSPath()
14596 _PyType_Name(Py_TYPE(path_repr))); in PyOS_FSPath()
14597 Py_DECREF(path_repr); in PyOS_FSPath()
14601 return path_repr; in PyOS_FSPath()

Completed in 17 milliseconds