Searched refs:fsdecode (Results 1 – 25 of 28) sorted by relevance
12
/external/python/cpython2/Lib/test/ |
D | test_glob.py | 10 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/ |
D | util.py | 136 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__.py | 24 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 …]
|
D | utils.py | 79 def fsdecode(path, encoding=sys.getfilesystemencoding()): function
|
/external/python/cpython3/Lib/ |
D | os.py | 648 path_list = fsdecode(path_list) 810 def fsdecode(filename): function 822 return fsencode, fsdecode 824 fsencode, fsdecode = _fscodec() variable
|
D | ntpath.py | 394 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)])
|
D | subprocess.py | 549 for arg in map(os.fsdecode, seq): 1250 executable = os.fsdecode(executable) 1301 cwd = os.fsdecode(cwd)
|
D | posixpath.py | 317 value = os.fsencode(os.environ[os.fsdecode(name)])
|
D | shutil.py | 694 path = os.fsdecode(path) 1381 path = os.fsdecode(path)
|
D | zipimport.py | 66 path = os.fsdecode(path)
|
/external/python/cpython3/Lib/test/ |
D | test_os.py | 147 self.assertEqual(os.fsdecode(cwd), os.getcwd()) 1281 root = os.fsdecode(broot) 1282 dirs = list(map(os.fsdecode, bdirs)) 1283 files = list(map(os.fsdecode, bfiles)) 1293 root = os.fsdecode(broot) 1294 dirs = list(map(os.fsdecode, bdirs)) 1295 files = list(map(os.fsdecode, bfiles)) 2078 fn = os.fsdecode(fn) 2640 self.assertEqual(os.fsdecode('abc\u0141'), 'abc\u0141') 2649 self.assertEqual(os.fsdecode(bytesfn), fn) [all …]
|
D | test_ntpath.py | 45 return ntpath.normcase(os.fsdecode(path)) 47 return tuple(ntpath.normcase(os.fsdecode(p)) for p in path)
|
D | test_cmd_line_script.py | 537 name = os.fsdecode(support.TESTFN_UNDECODABLE)
|
D | test_httpservers.py | 396 filename = os.fsdecode(support.TESTFN_UNDECODABLE) + '.txt'
|
D | test_tempfile.py | 597 self.assertEqual(a, os.fsdecode(c))
|
/external/python/cpython3/Doc/c-api/ |
D | exceptions.rst | 186 (:func:`os.fsdecode`). 215 encoding (:func:`os.fsdecode`). 269 decoded from the filesystem encoding (:func:`os.fsdecode`). 346 filesystem encoding (:func:`os.fsdecode`).
|
D | veryhigh.rst | 304 decoded from the filesystem encoding (:func:`os.fsdecode`).
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.6.0a2.rst | 248 Add support for os.PathLike objects to os.fsencode() and os.fsdecode() (part
|
D | 3.6.1rc1.rst | 163 os.fsencode() and os.fsdecode() which are already using UTF-8.
|
/external/python/cpython3/Doc/library/ |
D | sys.rst | 609 :func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that 642 :func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
|
D | os.rst | 170 :func:`fsdecode` is the reverse function. 179 .. function:: fsdecode(filename) 2296 :func:`~os.fsdecode` to decode byte filenames. 2309 :func:`~os.fsdecode` to decode byte filenames.
|
/external/python/cpython3/Lib/test/support/ |
D | __init__.py | 918 if os.fsdecode(os.fsencode(character)) != character:
|
/external/python/cpython3/Doc/using/ |
D | cmdline.rst | 915 * :func:`os.fsdecode()` and :func:`os.fsencode()` use the UTF-8 encoding.
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.6.rst | 422 :func:`os.fsdecode`, or :func:`os.fsencode` to explicitly get a 517 :func:`os.fsencode()` and :func:`os.fsdecode()` to ensure their bytes are
|
/external/python/cpython3/Doc/ |
D | glossary.rst | 890 :func:`os.fsdecode` and :func:`os.fsencode` can be used to guarantee a
|
12