Home
last modified time | relevance | path

Searched refs:__fspath__ (Results 1 - 13 of 13) sorted by relevance

/third_party/jinja2/
H A D_compat.py125 if hasattr(path, "__fspath__"):
126 return path.__fspath__()
128 # Python 3.5 doesn't have __fspath__ yet, use str.
/third_party/node/deps/v8/third_party/jinja2/
H A D_compat.py125 if hasattr(path, "__fspath__"):
126 return path.__fspath__()
128 # Python 3.5 doesn't have __fspath__ yet, use str.
/third_party/skia/third_party/externals/jinja2/
H A D_compat.py125 if hasattr(path, "__fspath__"):
126 return path.__fspath__()
128 # Python 3.5 doesn't have __fspath__ yet, use str.
/third_party/python/Lib/unittest/test/testmock/
H A Dtestmagicmethods.py328 expected_path = mock.__fspath__()
332 mock.__fspath__.assert_called_once()
/third_party/python/Lib/
H A Dos.py1051 path_repr = path_type.__fspath__(path)
1053 if hasattr(path_type, '__fspath__'):
1061 raise TypeError("expected {}.__fspath__() to return str or bytes, "
1077 def __fspath__(self): member in PathLike
1084 return _check_methods(subclass, '__fspath__')
H A Dpathlib.py546 def __fspath__(self): member in PurePath
/third_party/python/Lib/test/support/
H A Dos_helper.py578 def __fspath__(self): member in FakePath
/third_party/python/Include/internal/
H A Dpycore_global_strings.h103 STRUCT_FOR_ID(__fspath__)
H A Dpycore_runtime_init.h726 INIT_ID(__fspath__), \
/third_party/python/Lib/test/
H A Dtest_tempfile.py71 def __fspath__(self): member in TestLowLevelInternals.test_infer_return_type_pathlike.Path
H A Dtest_pathlib.py400 self._check_str(p.__fspath__(), ('a/b',))
H A Dtest_os.py4097 msg = r'__fspath__\(\) to return str or bytes, not %s'
4527 # __fspath__ returns a value other than str or bytes.
4529 # __fspath__ attribute that is not callable.
4531 c.__fspath__ = 1
4533 # __fspath__ raises an exception.
/third_party/python/Modules/
H A Dposixmodule.c1188 func = _PyObject_LookupSpecial(o, &_Py_ID(__fspath__)); in path_converter()
1205 "expected %.200s.__fspath__() to return str or bytes, " in path_converter()
13955 os.DirEntry.__fspath__
14562 an incremented refcount. If the object defines __fspath__(), then
14578 func = _PyObject_LookupSpecial(path, &_Py_ID(__fspath__)); in PyOS_FSPath()
14594 "expected %.200s.__fspath__() to return str or bytes, " in PyOS_FSPath()
14612 object defines __fspath__(), then return the result of that method. All other

Completed in 36 milliseconds