Searched refs:path_repr (Results 1 – 2 of 2) sorted by relevance
1046 path_repr = path_type.__fspath__(path)1053 if isinstance(path_repr, (str, bytes)):1054 return path_repr1058 type(path_repr).__name__))
12518 PyObject *path_repr = NULL; in PyOS_FSPath() local12533 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()