Home
last modified time | relevance | path

Searched refs:read_text (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython3/Lib/importlib/
Dmetadata.py121 def read_text(self, encoding='utf-8'): member in PackagePath
146 def read_text(self, filename): member in Distribution
223 self.read_text('METADATA')
224 or self.read_text('PKG-INFO')
228 or self.read_text('')
239 return EntryPoint._from_text(self.read_text('entry_points.txt'))
267 text = self.read_text('RECORD')
275 text = self.read_text('SOURCES.txt')
288 source = self.read_text('requires.txt')
450 def read_text(self, filename): member in PathDistribution
[all …]
Dresources.py158 def read_text(package: Package, function
/external/python/cpython3/Lib/test/test_importlib/
Dtest_read.py15 resources.read_text(package, path)
24 result = resources.read_text(self.data, 'utf-8.file')
28 result = resources.read_text(
35 UnicodeError, resources.read_text, self.data, 'utf-16.file')
36 result = resources.read_text(self.data, 'utf-16.file', errors='ignore')
Dtest_metadata_api.py38 distribution('egginfo-pkg').read_text('top_level.txt').strip(),
46 self.assertEqual(top_level.read_text(), 'mod\n')
73 file.read_text()
Dtest_zip.py39 self.assertIsNone(distribution('example').read_text('does not exist'))
Dtest_resource.py157 resources.read_text,
/external/linux-kselftest/tools/testing/selftests/cgroup/
Dcgroup_util.c19 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text() function
93 if (read_text(path, buf, len) >= 0) in cg_read()
196 if (read_text("/proc/self/mounts", buf, sizeof(buf)) <= 0) in cg_find_unified_root()
401 if (read_text("/proc/swaps", buf, sizeof(buf)) <= 0) in is_swap_enabled()
441 return read_text(path, buf, size); in proc_read_text()
/external/skia/infra/bots/recipe_modules/run/
Dapi.py43 return self.m.file.read_text(name, filename, *args, **kwargs)
65 return self.m.file.read_text('Get %s VERSION' % asset_name,
/external/skqp/infra/bots/recipe_modules/run/
Dapi.py43 return self.m.file.read_text(name, filename, *args, **kwargs)
65 return self.m.file.read_text('Get %s VERSION' % asset_name,
/external/skqp/infra/bots/recipes/
Dbookmaker.py89 content = api.file.read_text('Read fiddleout.json',
/external/skia/infra/bots/recipe_modules/flavor/
Ddefault.py97 return self.m.file.read_text('read %s' % path, path)
/external/python/cpython3/Doc/library/
Dpathlib.rst918 .. method:: Path.read_text(encoding=None, errors=None)
925 >>> p.read_text()
1106 >>> p.read_text()
Dimportlib.metadata.rst152 >>> print(util.read_text()) # doctest: +SKIP
Dzipfile.rst514 .. method:: Path.read_text(*, **)
Dimportlib.rst894 .. function:: read_text(package, resource, encoding='utf-8', errors='strict')
/external/python/cpython3/Lib/test/
Dtest_zipfile.py2806 assert a.read_text() == "content of a"
2815 assert e.read_text() == "content of e"
2823 assert e.read_text() == "content of e"
Dtest_pathlib.py1380 self.assertEqual((p / 'fileA').read_text(
1384 self.assertEqual((p / 'fileA').read_text(encoding='latin-1'), 'äbcdefg')
/external/python/cpython3/Lib/
Dpathlib.py1225 def read_text(self, encoding=None, errors=None): member in Path
Dzipfile.py2264 def read_text(self, *args, **kwargs): member in Path
/external/python/cpython3/Doc/whatsnew/
D3.5.rst1550 :meth:`Path.read_text() <pathlib.Path.read_text>`,
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a1.rst2001 Added convenience methods read_text/write_text and read_bytes/ write_bytes