Home
last modified time | relevance | path

Searched refs:fsdecode (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_glob.py10 def fsdecode(s): function
53 ures = [fsdecode(x) for x in res]
54 self.assertItemsEqual(glob.glob(fsdecode(p)), ures)
55 self.assertItemsEqual(glob.iglob(fsdecode(p)), ures)
78 tmp = os.listdir(fsdecode(os.curdir))
82 res = glob.glob(os.path.join(fsdecode(os.curdir), u'*'))
134 res = glob.glob(fsdecode(self.norm('Z*Z') + os.sep))
136 res = glob.glob(fsdecode(self.norm('ZZZ') + os.sep))
138 res = glob.glob(fsdecode(self.norm('aa*') + os.sep))
142 {fsdecode(self.norm('aaa')), fsdecode(self.norm('aab'))},
[all …]
/external/python/cpython3/Lib/ctypes/
Dutil.py149 return os.fsdecode(file)
169 return os.fsdecode(res.group(1))
191 return os.fsdecode(res.group(1))
225 return os.fsdecode(res[-1])
253 paths = os.fsdecode(line).split()[4]
296 return os.fsdecode(res.group(1))
315 res = re.findall(expr, os.fsdecode(out))
322 return os.fsdecode(file)
/external/fonttools/Lib/fontTools/ufoLib/
D__init__.py3 from os import fsdecode
122 dt = self.fs.getinfo(fsdecode(path), namespaces=["details"]).modified
268 self._path = fsdecode(path)
384 return self.fs.readbytes(fsdecode(path))
398 path = fsdecode(path)
810 fileName = fsdecode(fileName)
835 fileName = fsdecode(fileName)
1004 self._path = fsdecode(path)
1054 sourcePath = fsdecode(sourcePath)
1055 destPath = fsdecode(destPath)
[all …]
/external/python/cpython3/Lib/
Dos.py656 path_list = fsdecode(path_list)
816 def fsdecode(filename): function
828 return fsencode, fsdecode
830 fsencode, fsdecode = _fscodec() variable
Dntpath.py394 value = os.fsencode(os.environ[os.fsdecode(var)])
416 value = os.fsencode(os.environ[os.fsdecode(var)])
432 value = os.fsencode(os.environ[os.fsdecode(var)])
Drunpy.py236 decoded_path = os.path.abspath(os.fsdecode(fname))
Dposixpath.py317 value = os.fsencode(os.environ[os.fsdecode(name)])
Dsubprocess.py561 for arg in map(os.fsdecode, seq):
1359 executable = os.fsdecode(executable)
1410 cwd = os.fsdecode(cwd)
Dshutil.py703 path = os.fsdecode(path)
1409 path = os.fsdecode(path)
Dzipimport.py66 path = os.fsdecode(path)
/external/pigweed/pw_watch/py/pw_watch/
Dwatch.py194 paths.append(os.fsdecode(event.dest_path))
196 paths.append(os.fsdecode(event.src_path))
/external/python/cpython3/Lib/test/
Dtest_os.py149 self.assertEqual(os.fsdecode(cwd), os.getcwd())
1396 root = os.fsdecode(broot)
1397 dirs = list(map(os.fsdecode, bdirs))
1398 files = list(map(os.fsdecode, bfiles))
1408 root = os.fsdecode(broot)
1409 dirs = list(map(os.fsdecode, bdirs))
1410 files = list(map(os.fsdecode, bfiles))
2193 fn = os.fsdecode(fn)
2755 self.assertEqual(os.fsdecode('abc\u0141'), 'abc\u0141')
2764 self.assertEqual(os.fsdecode(bytesfn), fn)
[all …]
Dtest_ntpath.py45 return ntpath.normcase(os.fsdecode(path))
47 return tuple(ntpath.normcase(os.fsdecode(p)) for p in path)
Dtest_cmd_line_script.py560 name = os.fsdecode(support.TESTFN_UNDECODABLE)
Dtest_compileall.py258 self.assertIn(f'"{expected_in}"', os.fsdecode(err))
Dtest_tempfile.py589 self.assertEqual(a, os.fsdecode(c))
Dtest_httpservers.py397 filename = os.fsdecode(support.TESTFN_UNDECODABLE) + '.txt'
/external/python/cpython3/Doc/c-api/
Dexceptions.rst186 (:func:`os.fsdecode`).
215 encoding (:func:`os.fsdecode`).
269 decoded from the filesystem encoding (:func:`os.fsdecode`).
346 filesystem encoding (:func:`os.fsdecode`).
Dveryhigh.rst314 decoded from the filesystem encoding (:func:`os.fsdecode`).
/external/python/cpython3/Misc/NEWS.d/
D3.6.0a2.rst248 Add support for os.PathLike objects to os.fsencode() and os.fsdecode() (part
D3.6.1rc1.rst163 os.fsencode() and os.fsdecode() which are already using UTF-8.
/external/python/cpython3/Lib/multiprocessing/
Dmanagers.py1271 address = os.fsdecode(address)
/external/python/cpython3/Doc/library/
Dsys.rst625 :func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
658 :func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
/external/python/cpython3/Lib/test/support/
D__init__.py775 if os.fsdecode(os.fsencode(character)) != character:
/external/python/cpython3/Doc/using/
Dcmdline.rst929 * :func:`os.fsdecode()` and :func:`os.fsencode()` use the UTF-8 encoding.

12