Home
last modified time | relevance | path

Searched refs:tofile (Results 1 – 25 of 53) sorted by relevance

123

/external/python/cpython3/Tools/scripts/
Ddiff.py39 tofile = options.tofile
42 todate = file_mtime(tofile)
45 with open(tofile) as tf:
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)
/external/python/cpython2/Tools/scripts/
Ddiff.py31 fromfile, tofile = args
34 todate = time.ctime(os.stat(tofile).st_mtime)
37 with open(tofile, 'U') as f:
41 diff = difflib.unified_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n)
45 …diff = difflib.HtmlDiff().make_file(fromlines,tolines,fromfile,tofile,context=options.c,numlines=n)
47 diff = difflib.context_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n)
/external/fonttools/Tests/mtiLib/
Dmti_test.py146 def expect_ttx(self, expected_ttx, actual_ttx, fromfile=None, tofile=None): argument
152 expected, actual, fromfile=fromfile, tofile=tofile):
198 self.expect_ttx(xml_binary, xml_built, fromfile='decompiled', tofile='built')
199 self.expect_ttx(xml_expected, xml_built, fromfile=xml_expected_path, tofile='built')
217 self.expect_ttx(xml_expected, xml_fromxml, fromfile=xml_expected_path, tofile='fromxml')
/external/oss-fuzz/projects/pffft/
Dgenerate_seed_corpus.py46 z.tofile(os.path.join(output_path, 'zeros_%d' % n))
49 m.tofile(os.path.join(output_path, 'max_%d' % n))
53 rnd_s16.tofile(os.path.join(output_path, 'rnd_s16_%d' % n))
/external/lua/src/
Dliolib.c181 static FILE *tofile (lua_State *L) { in tofile() function
217 tofile(L); /* make sure argument is an open stream */ in f_close()
318 tofile(L); /* check that it's a valid file handle */ in g_iofile()
369 tofile(L); /* check that it's a valid file handle */ in f_lines()
386 tofile(L); /* check that it's a valid file handle */ in io_lines()
616 return g_read(L, tofile(L), 2); in f_read()
684 FILE *f = tofile(L); in f_write()
693 FILE *f = tofile(L); in f_seek()
712 FILE *f = tofile(L); in f_setvbuf()
727 return luaL_fileresult(L, fflush(tofile(L)) == 0, NULL); in f_flush()
/external/clang/utils/check_cfc/
Dobj_diff.py39 def first_diff(a, b, fromfile, tofile): argument
61 tofile)
/external/llvm-project/clang/utils/check_cfc/
Dobj_diff.py39 def first_diff(a, b, fromfile, tofile): argument
61 tofile)
/external/cldr/tools/java/org/unicode/cldr/icu/
DRBNFWriter.java57 String tofile = options[TOFILE].value; in main() local
71 System.out.println(tofile); in main()
73 … PrintWriter out = FileUtilities.openUTF8Writer(options[DESTDIR].value + File.separator, tofile); in main()
/external/python/cpython3/Lib/
Ddifflib.py1135 def unified_diff(a, b, fromfile='', tofile='', fromfiledate='', argument
1176 _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
1184 yield '+++ {}{}{}'.format(tofile, todate, lineterm)
1220 def context_diff(a, b, fromfile='', tofile='', argument
1264 _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
1273 yield '--- {}{}{}'.format(tofile, todate, lineterm)
1313 def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', argument
1334 tofile = decode(tofile)
1339 lines = dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)
/external/python/cpython2/Lib/plat-mac/
Dapplesingle.py86 def tofile(self, path, resonly=False): member in AppleSingle
132 asfile.tofile(outpath, resonly=resonly)
/external/llvm-project/llvm/utils/lit/tests/Inputs/shtest-shell/
Ddiff-error-2.txt1 # Check error on an internal shell error (missing tofile)
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dfake_external_vad.py20 array.tofile(open(args.o, 'w'))
/external/libaom/libaom/tools/
Daggregate_entropy_stats.py36 sum.tofile(dir+sys.argv[3])
/external/pdfium/testing/tools/
Dtext_diff.py22 str1, str2, fromfile=filename1, tofile=filename2)
/external/expat/tests/
Dudiffer.py55 tofile=config.second))
/external/python/cpython2/Doc/library/
Ddifflib.rst139 .. function:: context_diff(a, b[, fromfile][, tofile][, fromfiledate][, tofiledate][, n][, lineterm…
159 *tofile*, *fromfiledate*, and *tofiledate*. The modification times are normally
165 >>> for line in context_diff(s1, s2, fromfile='before.py', tofile='after.py'):
273 .. function:: unified_diff(a, b[, fromfile][, tofile][, fromfiledate][, tofiledate][, n][, lineterm…
294 *tofile*, *fromfiledate*, and *tofiledate*. The modification times are normally
300 >>> for line in unified_diff(s1, s2, fromfile='before.py', tofile='after.py'):
734 usage = "usage: %prog [options] fromfile tofile"
752 parser.error("need to specify both a fromfile and tofile")
755 fromfile, tofile = args # as specified in the usage string
759 todate = time.ctime(os.stat(tofile).st_mtime)
[all …]
Darray.rst216 .. method:: array.tofile(f)
230 the :meth:`tofile` method.)
243 Use the :meth:`tofile` method.
/external/yapf/yapftests/
Dyapf_test_helper.py55 tofile='expected',
/external/compiler-rt/lib/sanitizer_common/scripts/
Dsancov.py100 array.array('I', MagicForBits(bits)).tofile(sys.stdout)
176 array.array('I', MagicForBits(bits)).tofile(f2)
/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/
Dsancov.py105 array.array('I', MagicForBits(bits)).tofile(stdout_buf)
180 array.array('I', MagicForBits(bits)).tofile(f2)
/external/libchrome/build/
Dlandmines.py74 fromfile='old_landmines', tofile='new_landmines',
/external/tensorflow/tensorflow/tools/tensorflow_builder/config_detector/data/
Dcuda_compute_capability.py214 tofile=CUDA_CC_GOLDEN_DIR
/external/parameter-framework/upstream/test/xml-generator/
Dtest.py83 tofile="-",
/external/python/cpython3/Doc/library/
Ddifflib.rst152 .. function:: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, linet…
172 *tofile*, *fromfiledate*, and *tofiledate*. The modification times are normally
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…
303 *tofile*, *fromfiledate*, and *tofiledate*. The modification times are normally
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
/external/python/cpython2/Lib/
Ddifflib.py1156 def unified_diff(a, b, fromfile='', tofile='', fromfiledate='', argument
1204 yield '+++ {}{}{}'.format(tofile, todate, lineterm)
1240 def context_diff(a, b, fromfile='', tofile='', argument
1291 yield '--- {}{}{}'.format(tofile, todate, lineterm)

123