/third_party/python/Lib/test/test_importlib/ |
D | test_read.py | 15 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')
|
D | test_metadata_api.py | 67 distribution('egginfo-pkg').read_text('top_level.txt').strip(), 'mod' 74 self.assertEqual(top_level.read_text(), 'mod\n') 194 file.read_text()
|
D | test_files.py | 18 actual = files.joinpath('utf-8.file').read_text(encoding='utf-8')
|
D | test_zip.py | 51 self.assertIsNone(distribution('example').read_text('does not exist'))
|
D | test_reader.py | 58 path.read_text()
|
D | test_resource.py | 212 c = resources.read_text('ziptestdata', 'utf-8.file', encoding='utf-8')
|
/third_party/python/Lib/importlib/metadata/ |
D | __init__.py | 463 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.py | 46 def read_text(self) -> str: member in SimplePath
|
/third_party/skia/infra/bots/recipe_modules/run/ |
D | api.py | 43 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/ |
D | readers.py | 77 def read_text(self, *args, **kwargs): member in MultiplexedPath
|
D | resources.py | 92 def read_text( function
|
D | abc.py | 374 def read_text(self, encoding=None): member in Traversable
|
/third_party/skia/infra/bots/recipe_modules/flavor/ |
D | default.py | 101 return self.m.file.read_text('read %s' % path, path)
|
/third_party/gn/infra/recipes/ |
D | gn.py | 208 build_ninja_clang_py = api.file.read_text('read %s' % build_ninja_clang_path,
|
/third_party/python/Tools/scripts/ |
D | stable_abi.py | 271 existing = path.read_text()
|
/third_party/python/Lib/test/ |
D | test_zipfile.py | 3017 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")
|
D | test_pathlib.py | 1556 self.assertEqual((p / 'fileA').read_text( 1560 self.assertEqual((p / 'fileA').read_text(encoding='latin-1'), 'äbcdefg')
|
/third_party/node/deps/v8/tools/ |
D | generate-runtime-call-stats.py | 139 text_string = pathlib.Path(trace_file).read_text()
|
/third_party/node/ |
D | configure.py | 59 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/ |
D | pathlib.rst | 988 .. method:: Path.read_text(encoding=None, errors=None) 995 >>> p.read_text() 1221 >>> p.read_text()
|
D | importlib.metadata.rst | 220 >>> print(util.read_text()) # doctest: +SKIP
|
D | importlib.rst | 854 .. 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')
|
D | io.rst | 209 def read_text(path, encoding=None): 215 ``read_text()``.
|
D | zipfile.rst | 528 .. method:: Path.read_text(*, **)
|
/third_party/python/Lib/ |
D | pathlib.py | 1127 def read_text(self, encoding=None, errors=None): member in Path
|