Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/
Dos.py1046 path_repr = path_type.__fspath__(path)
1053 if isinstance(path_repr, (str, bytes)):
1054 return path_repr
1058 type(path_repr).__name__))
/external/python/cpython3/Modules/
Dposixmodule.c12518 PyObject *path_repr = NULL; in PyOS_FSPath() local
12533 path_repr = _PyObject_CallNoArg(func); in PyOS_FSPath()
12535 if (NULL == path_repr) { in PyOS_FSPath()
12539 if (!(PyUnicode_Check(path_repr) || PyBytes_Check(path_repr))) { in PyOS_FSPath()
12543 Py_TYPE(path_repr)->tp_name); in PyOS_FSPath()
12544 Py_DECREF(path_repr); in PyOS_FSPath()
12548 return path_repr; in PyOS_FSPath()