Home
last modified time | relevance | path

Searched refs:fspath (Results 1 – 25 of 41) sorted by relevance

12

/third_party/python/Lib/
Dposixpath.py54 return os.fspath(s)
62 s = os.fspath(s)
76 a = os.fspath(a)
82 for b in map(os.fspath, p):
103 p = os.fspath(p)
118 p = os.fspath(p)
134 p = os.fspath(p)
142 p = os.fspath(p)
152 p = os.fspath(p)
231 path = os.fspath(path)
[all …]
Dntpath.py48 s = os.fspath(s)
63 s = os.fspath(s)
78 path = os.fspath(path)
91 for p in map(os.fspath, paths):
143 p = os.fspath(p)
185 p = os.fspath(p)
204 p = os.fspath(p)
265 path = os.fspath(path)
293 path = os.fspath(path)
354 path = os.fspath(path)
[all …]
Dos.py342 return _walk(fspath(top), topdown, onerror, followlinks)
465 top = fspath(top)
810 filename = fspath(filename) # Does type-checking of `filename`.
822 filename = fspath(filename) # Does type-checking of `filename`.
1066 fspath = _fspath variable
1067 fspath.__name__ = "fspath"
Dfileinput.py189 files = (os.fspath(files), )
351 os.fspath(self._filename) + (self._backup or ".bak"))
Dgenericpath.py77 m = tuple(map(os.fspath, m))
Dcompileall.py27 dir = os.fspath(dir)
158 fullname = os.fspath(fullname)
Dshutil.py453 ignored_names = ignore(os.fspath(src), [x.name for x in entries])
759 path = os.fspath(path)
1244 extract_dir = os.fspath(extract_dir)
1245 filename = os.fspath(filename)
Dglob.py40 root_dir = os.fspath(root_dir)
Dmimetypes.py122 url = os.fspath(url)
Dzipfile.py501 filename = os.fspath(filename)
1230 file = os.fspath(file)
1615 path = os.fspath(path)
1631 path = os.fspath(path)
1956 pathname = os.fspath(pathname)
Dgzip.py180 filename = os.fspath(filename)
Dtempfile.py93 arg = _os.fspath(arg)
/third_party/python/PCbuild/
Dget_external.py28 with zipfile.ZipFile(os.fspath(zip_path)) as zf:
29 zf.extractall(os.fspath(externals_dir))
/third_party/skia/third_party/externals/jinja2/
D_compat.py117 from os import fspath
124 def fspath(path): function
Dloaders.py13 from ._compat import fspath
171 self.searchpath = [fspath(p) for p in searchpath]
467 mod.__path__ = [fspath(p) for p in path]
/third_party/jinja2/
D_compat.py117 from os import fspath
124 def fspath(path): function
Dloaders.py13 from ._compat import fspath
171 self.searchpath = [fspath(p) for p in searchpath]
467 mod.__path__ = [fspath(p) for p in path]
/third_party/python/Lib/distutils/command/
Dsdist.py233 def _cs_path_exists(fspath): argument
242 if not os.path.exists(fspath):
245 abspath = os.path.abspath(fspath)
/third_party/python/Lib/test/
Dtest_os.py4232 self.assertEqual(os.fspath(entry), os.path.join(self.path, 'file.txt'))
4237 fspath = os.fspath(bytes_entry)
4238 self.assertIsInstance(fspath, bytes)
4239 self.assertEqual(fspath,
4351 self.assertEqual(os.fspath(entry), entry.name)
4434 fspath = staticmethod(os.fspath) variable in TestPEP519
4438 self.assertEqual(b, self.fspath(b))
4442 self.assertEqual(s, self.fspath(s))
4448 self.assertEqual(p, self.fspath(pathlike))
4453 self.assertEqual('#feelthegil', self.fspath(FakePath('#feelthegil')))
[all …]
Dtest_tarfile.py494 self.assertEqual(tar.name, os.path.abspath(os.fspath(tarname)))
497 self.assertEqual(tar.name, os.path.abspath(os.fspath(tarname)))
500 self.assertEqual(tar.name, os.path.abspath(os.fspath(tarname)))
504 self.assertEqual(tar.name, os.path.abspath(os.fspath(tarname)))
1221 tarinfo2 = tar.gettarinfo(os.fspath(path))
/third_party/python/Lib/importlib/
D_bootstrap_external.py405 path = _os.fspath(path)
462 path = _os.fspath(path)
745 location = _os.fspath(location)
/third_party/python/Lib/xml/sax/
Dsaxutils.py343 source = os.fspath(source)
/third_party/python/Lib/asyncio/
Dunix_events.py250 path = os.fspath(path)
290 path = os.fspath(path)
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py331 self.assertEqual(os.fspath(mock), expected_path)
/third_party/python/Misc/NEWS.d/
D3.6.0a3.rst133 Update os.fspath()/PyOS_FSPath() to check the return value of __fspath__()

12