Searched refs:__fspath__ (Results 1 - 13 of 13) sorted by relevance
/third_party/jinja2/ |
H A D | _compat.py | 125 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.py | 125 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.py | 125 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 D | testmagicmethods.py | 328 expected_path = mock.__fspath__() 332 mock.__fspath__.assert_called_once()
|
/third_party/python/Lib/ |
H A D | os.py | 1051 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 D | pathlib.py | 546 def __fspath__(self): member in PurePath
|
/third_party/python/Lib/test/support/ |
H A D | os_helper.py | 578 def __fspath__(self): member in FakePath
|
/third_party/python/Include/internal/ |
H A D | pycore_global_strings.h | 103 STRUCT_FOR_ID(__fspath__)
|
H A D | pycore_runtime_init.h | 726 INIT_ID(__fspath__), \
|
/third_party/python/Lib/test/ |
H A D | test_tempfile.py | 71 def __fspath__(self): member in TestLowLevelInternals.test_infer_return_type_pathlike.Path
|
H A D | test_pathlib.py | 400 self._check_str(p.__fspath__(), ('a/b',))
|
H A D | test_os.py | 4097 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 D | posixmodule.c | 1188 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