Home
last modified time | relevance | path

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

12

/third_party/python/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(self.data, 'utf-16.file', encoding='utf-16')
33 self.assertRaises(UnicodeError, resources.read_text, self.data, 'utf-16.file')
34 result = resources.read_text(self.data, 'utf-16.file', errors='ignore')
Dtest_metadata_api.py67 distribution('egginfo-pkg').read_text('top_level.txt').strip(), 'mod'
74 self.assertEqual(top_level.read_text(), 'mod\n')
194 file.read_text()
Dtest_files.py18 actual = files.joinpath('utf-8.file').read_text(encoding='utf-8')
Dtest_zip.py51 self.assertIsNone(distribution('example').read_text('does not exist'))
Dtest_reader.py58 path.read_text()
Dtest_resource.py212 c = resources.read_text('ziptestdata', 'utf-8.file', encoding='utf-8')
/third_party/python/Lib/importlib/metadata/
D__init__.py463 def read_text(self, encoding='utf-8'): member in PackagePath
488 def read_text(self, filename): member in Distribution
575 self.read_text('METADATA')
576 or self.read_text('PKG-INFO')
580 or self.read_text('')
601 return EntryPoints._from_text_for(self.read_text('entry_points.txt'), self)
629 text = self.read_text('RECORD')
637 text = self.read_text('SOURCES.txt')
650 source = self.read_text('requires.txt')
890 def read_text(self, filename): member in PathDistribution
[all …]
D_meta.py46 def read_text(self) -> str: member in SimplePath
/third_party/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,
/third_party/python/Lib/importlib/
Dreaders.py77 def read_text(self, *args, **kwargs): member in MultiplexedPath
Dresources.py92 def read_text( function
Dabc.py374 def read_text(self, encoding=None): member in Traversable
/third_party/skia/infra/bots/recipe_modules/flavor/
Ddefault.py101 return self.m.file.read_text('read %s' % path, path)
/third_party/gn/infra/recipes/
Dgn.py208 build_ninja_clang_py = api.file.read_text('read %s' % build_ninja_clang_path,
/third_party/python/Tools/scripts/
Dstable_abi.py271 existing = path.read_text()
/third_party/python/Lib/test/
Dtest_zipfile.py3017 assert a.read_text(encoding="utf-8") == "content of a"
3026 assert e.read_text(encoding="utf-8") == "content of e"
3032 assert e.read_text(encoding="utf-8") == "content of e"
3040 assert e.read_text(encoding="utf-8") == "content of e"
3097 assert (root / 'foo.txt').read_text(encoding="utf-8") == 'foo'
3099 assert baz.read_text(encoding="utf-8") == 'baz'
3133 zipfile.Path(file, 'a.txt').read_text(encoding="utf-8")
Dtest_pathlib.py1556 self.assertEqual((p / 'fileA').read_text(
1560 self.assertEqual((p / 'fileA').read_text(encoding='latin-1'), 'äbcdefg')
/third_party/node/deps/v8/tools/
Dgenerate-runtime-call-stats.py139 text_string = pathlib.Path(trace_file).read_text()
/third_party/node/
Dconfigure.py59 icu_versions = json.loads((tools_path / 'icu' / 'icu_versions.json').read_text(encoding='utf-8'))
1688 icus = json.loads(depFile.read_text(encoding='utf-8'))
/third_party/python/Doc/library/
Dpathlib.rst988 .. method:: Path.read_text(encoding=None, errors=None)
995 >>> p.read_text()
1221 >>> p.read_text()
Dimportlib.metadata.rst220 >>> print(util.read_text()) # doctest: +SKIP
Dimportlib.rst854 .. method:: read_text(encoding=None)
955 (``read_text``, etc) are insufficient and an actual file on
998 .. function:: read_text(package, resource, encoding='utf-8', errors='strict')
Dio.rst209 def read_text(path, encoding=None):
215 ``read_text()``.
Dzipfile.rst528 .. method:: Path.read_text(*, **)
/third_party/python/Lib/
Dpathlib.py1127 def read_text(self, encoding=None, errors=None): member in Path

12