Home
last modified time | relevance | path

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

12

/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/gettext/gettext-tools/misc/
Dconvert-archive.in79 fromfile="$3"
80 test -n "$fromfile" || fromfile=`pwd`/archive.$from.tar.gz
97 dir) cat < "$fromfile" ;;
98 dirgz) gzip -d -c < "$fromfile" ;;
99 dirbz2) bzip2 -d -c < "$fromfile" ;;
100 dirxz) xz -d -c < "$fromfile" ;;
158 gzip -d -c < "$fromfile" | (cd "$cvs_dir" && tar xf -)
211 gzip -d -c < "$fromfile" | (cd "$work_dir/master" && tar xf -)
/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dsendfile.c24 const char *fromfile = "/data/tests/libc-test/src/fromfile.txt"; variable
34 FILE *f = fopen(fromfile, "w+"); in sendfile_0100()
42 int fromfd = open(fromfile, O_RDONLY); in sendfile_0100()
70 remove(fromfile); in sendfile_0100()
Dsplice.c24 const char *fromfile = "/data/tests/libc-test/src/fromfile.txt"; variable
35 int fromfd = open(fromfile, O_RDWR | O_CREAT); in splice_0100()
59 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/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/mindspore/tests/ut/python/dataset/
Dtest_datasets_mnist.py37 labels = np.fromfile(lbpath, dtype=np.uint8)
40 images = np.fromfile(imgpath, dtype=np.uint8)
Dtest_eager_vision.py23 img = np.fromfile("../data/dataset/apple.jpg", dtype=np.uint8)
Dtest_uniform_augment.py36 img = np.fromfile("../data/dataset/apple.jpg", dtype=np.uint8)
Dtest_invert.py37 img = np.fromfile("../data/dataset/apple.jpg", dtype=np.uint8)
Dtest_random_crop_and_resize.py43 img = np.fromfile("../data/dataset/apple.jpg", dtype=np.uint8)
Dtest_datasets_cifarop.py38 raw = np.append(raw, np.fromfile(file, dtype=np.uint8), axis=0)
/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/curl/lib/
Dcookie.c1197 bool fromfile = TRUE; in Curl_cookie_init() local
1222 fromfile = FALSE; in Curl_cookie_init()
1263 if(fromfile) in Curl_cookie_init()
1281 if(fromfile && fp) in Curl_cookie_init()
/third_party/jsoncpp/.travis_scripts/
Drun-clang-format.py80 fromfile='{}\t(original)'.format(file),
/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))
/third_party/skia/third_party/externals/spirv-tools/test/tools/
Dexpect.py363 fromfile='expected_output',
/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.py363 fromfile='expected_output',

12