Home
last modified time | relevance | path

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

12345

/external/pigweed/pw_tokenizer/py/
Ddatabase_test.py192 CSV_DEFAULT_DOMAIN.splitlines(), self._csv.read_text().splitlines()
200 self._csv.read_text().splitlines(),
207 CSV_ALL_DOMAINS.splitlines(), self._csv.read_text().splitlines()
226 CSV_DEFAULT_DOMAIN.splitlines(), self._csv.read_text().splitlines()
239 self._csv.read_text().splitlines(),
272 new_csv.splitlines(), self._csv.read_text().splitlines()
288 self._csv.read_text().splitlines(),
311 self._csv.read_text(),
322 CSV_STRINGS.splitlines(), self._csv.read_text().splitlines()
370 self._db_csv.read_text().splitlines(),
[all …]
/external/fonttools/Tests/designspaceLib/
Dsplit_test.py84 data_out.write_text(temp_out.read_text(encoding="utf-8"), encoding="utf-8")
86 assert data_out.read_text(encoding="utf-8") == temp_out.read_text(
98 temp_out.read_text(encoding="utf-8"), encoding="utf-8"
101 assert data_out.read_text(encoding="utf-8") == temp_out.read_text(
146 data_out.write_text(temp_out.read_text(encoding="utf-8"), encoding="utf-8")
148 assert data_out.read_text(encoding="utf-8") == temp_out.read_text(
/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(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')
199 file.read_text()
/external/python/setuptools/pkg_resources/_vendor/importlib_resources/tests/
Dtest_read.py16 resources.files(package).joinpath(path).read_text()
25 result = resources.files(self.data).joinpath('utf-8.file').read_text()
32 .read_text(encoding='utf-16')
39 self.assertRaises(UnicodeError, target.read_text, encoding='utf-8')
40 result = target.read_text(encoding='utf-8', errors='ignore')
Dtest_compatibilty_files.py67 self.assertEqual(self.files.read_text(), 'Hello, world!')
71 self.assertEqual((self.files / 'a').read_text(), 'Hello, world!')
/external/python/setuptools/setuptools/_vendor/importlib_resources/tests/
Dtest_read.py16 resources.files(package).joinpath(path).read_text()
25 result = resources.files(self.data).joinpath('utf-8.file').read_text()
32 .read_text(encoding='utf-16')
39 self.assertRaises(UnicodeError, target.read_text, encoding='utf-8')
40 result = target.read_text(encoding='utf-8', errors='ignore')
Dtest_compatibilty_files.py67 self.assertEqual(self.files.read_text(), 'Hello, world!')
71 self.assertEqual((self.files / 'a').read_text(), 'Hello, world!')
/external/python/setuptools/tools/
Dvendored.py40 text = file.read_text()
53 text = file.read_text()
65 text = file.read_text().replace('importlib_resources.abc', '.abc')
75 text = file.read_text().replace('typing_extensions', '..typing_extensions')
85 text = more_file.read_text()
97 text = file.read_text()
/external/python/setuptools/setuptools/_vendor/importlib_metadata/
D__init__.py483 def read_text(self, encoding='utf-8'): member in PackagePath
508 def read_text(self, filename): member in Distribution
583 self.read_text('METADATA')
584 or self.read_text('PKG-INFO')
588 or self.read_text('')
609 return EntryPoints._from_text_for(self.read_text('entry_points.txt'), self)
640 text = self.read_text('RECORD')
648 text = self.read_text('SOURCES.txt')
661 source = self.read_text('requires.txt')
909 def read_text(self, filename): member in PathDistribution
[all …]
/external/python/cpython3/Lib/importlib/metadata/
D__init__.py493 def read_text(self, encoding='utf-8'): member in PackagePath
518 def read_text(self, filename): member in Distribution
605 self.read_text('METADATA')
606 or self.read_text('PKG-INFO')
610 or self.read_text('')
631 return EntryPoints._from_text_for(self.read_text('entry_points.txt'), self)
659 text = self.read_text('RECORD')
667 text = self.read_text('SOURCES.txt')
680 source = self.read_text('requires.txt')
919 def read_text(self, filename): member in PathDistribution
[all …]
/external/tensorflow/tensorflow/tools/docs/
Dgenerate2_test.py73 raw_ops_page = (output_dir/'tf/raw_ops.md').read_text()
76 toc = yaml.safe_load((output_dir / 'tf/_toc.yaml').read_text())
81 redirects = yaml.safe_load((output_dir / 'tf/_redirects.yaml').read_text())
Dgenerate2.py256 content = yaml.safe_load(path.read_text())
294 if contents not in path.read_text():
311 if content in path.read_text():
/external/crosvm/tools/contrib/
Dcargo_refactor.py25 contents = file_path.read_text()
35 contents = file_path.read_text()
59 contents = toml.read_text()
/external/libxkbcommon/test/
Dsymbols-leak-test.py17 return re.findall(r'^\s+(xkb_.*);', path.read_text('utf-8'), re.MULTILINE)
21 return re.findall(r'XKB_EXPORT.*\n(xkb_.*)\(', path.read_text('utf-8'))
/external/linux-kselftest/tools/testing/selftests/cgroup/
Dcgroup_util.c22 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text() function
96 if (read_text(path, buf, len) >= 0) in cg_read()
199 if (read_text("/proc/self/mounts", buf, sizeof(buf)) <= 0) in cg_find_unified_root()
508 if (read_text("/proc/swaps", buf, sizeof(buf)) <= 0) in is_swap_enabled()
548 return read_text(path, buf, size); in proc_read_text()
/external/cronet/build/
Daction_helpers_unittest.py33 self.assertEqual(tmp_file.read_text(), 'test2')
55 return tmp_file.read_text()
/external/angle/build/
Daction_helpers_unittest.py33 self.assertEqual(tmp_file.read_text(), 'test2')
55 return tmp_file.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/cronet/build/private_code_test/
Dprivate_code_test.py67 text = pathlib.Path(path).read_text()
110 linker_inputs = pathlib.Path(args.linker_inputs).read_text().splitlines()
/external/angle/build/private_code_test/
Dprivate_code_test.py67 text = pathlib.Path(path).read_text()
110 linker_inputs = pathlib.Path(args.linker_inputs).read_text().splitlines()
/external/python/setuptools/setuptools/tests/config/
Dtest_apply_pyprojecttoml.py19 EXAMPLES = (Path(__file__).parent / "setupcfg_examples.txt").read_text()
35 toml_config = Translator().translate(setupcfg_example.read_text(), "setup.cfg")
188 text = pyproject.read_text(encoding="utf-8")
/external/crosvm/tools/
Dcustom_checks170 contents = file_path.read_text()
189 file_path.write_text(file_path.read_text() + "\n")
/external/python/setuptools/setuptools/_vendor/importlib_resources/
D__init__.py14 read_text,
/external/python/setuptools/pkg_resources/_vendor/importlib_resources/
D__init__.py14 read_text,

12345