Home
last modified time | relevance | path

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

/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.py136 return os.fsdecode(res.group(0))
156 return os.fsdecode(res.group(1))
178 return os.fsdecode(res.group(1))
212 return os.fsdecode(res[-1])
240 paths = os.fsdecode(line).split()[4]
283 return os.fsdecode(res.group(1))
302 res = re.search(expr, os.fsdecode(out))
/external/fonttools/Lib/fontTools/ufoLib/
D__init__.py24 from fontTools.ufoLib.utils import datetimeAsTimestamp, fsdecode, numberTypes
120 dt = self.fs.getinfo(fsdecode(path), namespaces=["details"]).modified
266 self._path = fsdecode(path)
359 return self.fs.readbytes(fsdecode(path))
373 path = fsdecode(path)
754 fileName = fsdecode(fileName)
777 fileName = fsdecode(fileName)
934 self._path = fsdecode(path)
986 sourcePath = fsdecode(sourcePath)
987 destPath = fsdecode(destPath)
[all …]
Dutils.py79 def fsdecode(path, encoding=sys.getfilesystemencoding()): function
/external/python/cpython3/Lib/
Dos.py653 path_list = fsdecode(path_list)
815 def fsdecode(filename): function
827 return fsencode, fsdecode
829 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)])
Dposixpath.py321 value = os.fsencode(os.environ[os.fsdecode(name)])
Dshutil.py476 path = os.fsdecode(path)
/external/python/cpython3/Lib/test/
Dtest_os.py1109 root = os.fsdecode(broot)
1110 dirs = list(map(os.fsdecode, bdirs))
1111 files = list(map(os.fsdecode, bfiles))
1121 root = os.fsdecode(broot)
1122 dirs = list(map(os.fsdecode, bdirs))
1123 files = list(map(os.fsdecode, bfiles))
1898 fn = os.fsdecode(fn)
2385 self.assertEqual(os.fsdecode('abc\u0141'), 'abc\u0141')
2394 self.assertEqual(os.fsdecode(bytesfn), fn)
3711 self.assertEqual("path/like/object", os.fsdecode(pathlike))
Dtest_cmd_line_script.py498 name = os.fsdecode(support.TESTFN_UNDECODABLE)
Dtest_httpservers.py395 filename = os.fsdecode(support.TESTFN_UNDECODABLE) + '.txt'
Dtest_tempfile.py594 self.assertEqual(a, os.fsdecode(c))
/external/python/cpython3/Doc/c-api/
Dexceptions.rst181 (:func:`os.fsdecode`).
210 encoding (:func:`os.fsdecode`).
264 decoded from the filesystem encoding (:func:`os.fsdecode`).
341 filesystem encoding (:func:`os.fsdecode`).
Dveryhigh.rst293 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.
D3.7.0a1.rst962 os.fsencode() and os.fsdecode() which are already using UTF-8.
/external/python/cpython3/Lib/test/support/
D__init__.py862 if os.fsdecode(os.fsencode(character)) != character:
/external/python/cpython3/Doc/library/
Dsys.rst502 :func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
531 :func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
Dos.rst169 :func:`fsdecode` is the reverse function.
178 .. function:: fsdecode(filename)
2227 :func:`~os.fsdecode` to decode byte filenames.
2240 :func:`~os.fsdecode` to decode byte filenames.
/external/python/cpython3/Doc/using/
Dcmdline.rst874 * :func:`os.fsdecode()` and :func:`os.fsencode()` use the UTF-8 encoding.
/external/python/cpython3/Doc/whatsnew/
D3.6.rst422 :func:`os.fsdecode`, or :func:`os.fsencode` to explicitly get a
517 :func:`os.fsencode()` and :func:`os.fsdecode()` to ensure their bytes are
D3.2.rst1517 :func:`~os.fsencode` and :func:`~os.fsdecode`, for encoding and decoding
/external/python/cpython3/Doc/
Dglossary.rst859 :func:`os.fsdecode` and :func:`os.fsencode` can be used to guarantee a
/external/python/cpython3/Misc/
DHISTORY4587 os.fsencode() and os.fsdecode(), because these operating systems announce an
4614 inconsistencies with os.fsencode() and os.fsdecode() functions which are
12481 - Create os.fsdecode(): decode from the filesystem encoding with surrogateescape