Home
last modified time | relevance | path

Searched refs:fromfile (Results 1 – 22 of 22) sorted by relevance

/third_party/python/Tools/scripts/
Ddiff.py38 fromfile = options.fromfile
41 fromdate = file_mtime(fromfile)
43 with open(fromfile) as ff:
49 diff = difflib.unified_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n)
53 …diff = difflib.HtmlDiff().make_file(fromlines,tolines,fromfile,tofile,context=options.c,numlines=n)
55 diff = difflib.context_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n)
/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dsendfile.c31 char fromfile[PATH_MAX] = {0}; in sendfile_0100() local
33 FILE_ABSOLUTE_PATH(STR_FILE_FROM_TXT, fromfile); in sendfile_0100()
36 FILE *f = fopen(fromfile, "w+"); in sendfile_0100()
44 int fromfd = open(fromfile, O_RDONLY); in sendfile_0100()
72 remove(fromfile); in sendfile_0100()
Dsplice.c33 char fromfile[PATH_MAX] = {0}; in splice_0100() local
35 FILE_ABSOLUTE_PATH(STR_FILE_FROM_TXT, fromfile); in splice_0100()
38 int fromfd = open(fromfile, O_RDWR | O_CREAT, TEST_MODE); in splice_0100()
62 remove(fromfile); in splice_0100()
/third_party/python/Tools/tz/
Dzdump.py18 def fromfile(cls, fileobj): member in TZInfo
26 transitions.fromfile(fileobj, tzh_timecnt)
31 type_indices.fromfile(fileobj, tzh_timecnt)
80 tzi = TZInfo.fromfile(fileobj)
/third_party/python/Lib/
Ddifflib.py1095 def unified_diff(a, b, fromfile='', tofile='', fromfiledate='', argument
1136 _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
1143 yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)
1180 def context_diff(a, b, fromfile='', tofile='', argument
1224 _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
1232 yield '*** {}{}{}'.format(fromfile, fromdate, lineterm)
1273 def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', argument
1293 fromfile = decode(fromfile)
1299 lines = dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)
/third_party/ltp/testcases/realtime/tools/
Dftqviz.py68 t = fromfile(timefile, dtype=int64, sep='\n')
69 x = fromfile(countfile, dtype=int64, sep='\n')
/third_party/skia/third_party/externals/expat/expat/tests/
Dudiffer.py55 diffs = list(difflib.unified_diff(first, second, fromfile=config.first,
/third_party/python/Lib/test/libregrtest/
Dcmdline.py152 self.fromfile = None
377 if ns.single and ns.fromfile:
Dmain.py215 if self.ns.fromfile:
220 with open(os.path.join(os_helper.SAVEDCWD, self.ns.fromfile)) as fp:
250 if not self.ns.fromfile:
/third_party/python/Doc/library/
Ddifflib.rst152 .. function:: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, linet…
171 times. Any or all of these may be specified using strings for *fromfile*,
178 >>> sys.stdout.writelines(context_diff(s1, s2, fromfile='before.py', tofile='after.py'))
282 .. function:: unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, linet…
302 times. Any or all of these may be specified using strings for *fromfile*,
310 >>> sys.stdout.writelines(unified_diff(s1, s2, fromfile='before.py', tofile='after.py'))
324 .. function:: diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n…
334 fromfile, tofile, fromfiledate, tofiledate, n, lineterm)``. The output of
Darray.rst152 values (as if it had been read from a file using the :meth:`fromfile` method).
158 .. method:: array.fromfile(f, n)
/third_party/python/Lib/test/
Dtest_array.py456 self.assertRaises(TypeError, b.fromfile)
457 b.fromfile(f, len(self.example))
460 self.assertRaises(EOFError, b.fromfile, f, len(self.example)+1)
474 self.assertRaises(OSError, a.fromfile, f, len(self.example))
487 b.fromfile(f, len(self.example))
490 b.fromfile(f, len(self.example))
Dtest_regrtest.py142 self.assertEqual(ns.fromfile, 'foo')
Ddatetimetester.py5595 def fromfile(cls, fileobj): member in ZoneInfo
5600 counts.fromfile(fileobj, 3)
5605 ut.fromfile(fileobj, counts[0])
5610 type_indices.fromfile(fileobj, counts[0])
5635 return cls.fromfile(f)
/third_party/jsoncpp/.travis_scripts/
Drun-clang-format.py80 fromfile='{}\t(original)'.format(file),
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/tools/
Dexpect.py363 fromfile='expected_output',
/third_party/spirv-tools/test/tools/
Dexpect.py378 fromfile='expected_output',
/third_party/skia/third_party/externals/spirv-tools/test/tools/
Dexpect.py363 fromfile='expected_output',
/third_party/skia/third_party/externals/angle2/src/tests/
Dcapture_replay_tests.py548 captured_context, replayed_context, fromfile=capture_file,
/third_party/pcre2/pcre2/src/
Dpcre2grep.c3599 compile_pattern(patstr *p, int options, int fromfile, const char *fromtext, in compile_pattern() argument
3644 if (fromfile) in compile_pattern()
/third_party/python/Doc/whatsnew/
D3.0.rst637 :meth:`write` methods are gone; use :meth:`fromfile` and
/third_party/python/Misc/
DHISTORY6150 - Issue #15324: Fix regrtest parsing of --fromfile, --match, and --randomize
15554 - Issue #5334: array.fromfile() failed to insert values when EOFError was raised.
27928 Carefully check for overflow when allocating the memory for fromfile
33274 methods are renamed to fromfile() and tofile().