Home
last modified time | relevance | path

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

12

/external/python/cpython3/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)
/external/python/cpython2/Tools/scripts/
Ddiff.py31 fromfile, tofile = args
33 fromdate = time.ctime(os.stat(fromfile).st_mtime)
35 fromlines = open(fromfile, 'U').readlines()
39 diff = difflib.unified_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n)
43 …diff = difflib.HtmlDiff().make_file(fromlines,tolines,fromfile,tofile,context=options.c,numlines=n)
45 diff = difflib.context_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n)
/external/python/cpython3/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)
/external/python/cpython3/Lib/
Ddifflib.py1136 def unified_diff(a, b, fromfile='', tofile='', fromfiledate='', argument
1177 _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
1184 yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)
1221 def context_diff(a, b, fromfile='', tofile='', argument
1265 _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
1273 yield '*** {}{}{}'.format(fromfile, fromdate, lineterm)
1314 def diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', argument
1334 fromfile = decode(fromfile)
1340 lines = dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)
/external/clang/utils/check_cfc/
Dobj_diff.py39 def first_diff(a, b, fromfile, tofile): argument
60 fromfile,
/external/python/cpython2/Doc/tools/extensions/
Dc_annotations.py38 def fromfile(cls, filename): member in Annotations
102 refcounts = Annotations.fromfile(
/external/python/cpython3/Doc/tools/extensions/
Dc_annotations.py38 def fromfile(cls, filename): member in Annotations
102 refcounts = Annotations.fromfile(
/external/ltp/testcases/realtime/tools/
Dftqviz.py68 t = fromfile(timefile, dtype=int64, sep='\n')
69 x = fromfile(countfile, dtype=int64, sep='\n')
/external/python/cpython2/Doc/library/
Ddifflib.rst139 .. function:: context_diff(a, b[, fromfile][, tofile][, fromfiledate][, tofiledate][, n][, lineterm…
158 times. Any or all of these may be specified using strings for *fromfile*,
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…
293 times. Any or all of these may be specified using strings for *fromfile*,
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
758 fromdate = time.ctime(os.stat(fromfile).st_mtime)
[all …]
Darray.rst146 .. method:: array.fromfile(f, n)
164 values (as if it had been read from a file using the :meth:`fromfile` method).
197 Use the :meth:`fromfile` method.
/external/python/cpython3/Lib/test/libregrtest/
Dcmdline.py280 exclude=False, single=False, randomize=False, fromfile=None,
302 if ns.single and ns.fromfile:
Dmain.py178 if self.ns.fromfile:
186 with open(os.path.join(support.SAVEDCWD, self.ns.fromfile)) as fp:
214 if not self.ns.fromfile:
/external/pdfium/testing/tools/
Dtext_diff.py21 str1, str2, fromfile=filename1, tofile=filename2)
/external/expat/tests/
Dudiffer.py54 diffs = list(difflib.unified_diff(first, second, fromfile=config.first,
/external/python/cpython2/Lib/test/
Dtest_array.py196 self.assertRaises(TypeError, b.fromfile)
199 b.fromfile,
202 b.fromfile(f, len(self.example))
205 b.fromfile(f, len(self.example))
207 self.assertRaises(EOFError, b.fromfile, f, 1)
220 self.assertRaises(IOError, a.fromfile, f, len(self.example))
233 b.fromfile(f, len(self.example))
236 b.fromfile(f, len(self.example))
Dregrtest.py240 exclude=False, single=False, randomize=False, fromfile=None, argument
307 fromfile = a
376 if single and fromfile:
413 if fromfile:
415 fp = open(os.path.join(test_support.SAVEDCWD, fromfile))
/external/curl/lib/
Dcookie.c981 bool fromfile = TRUE; in Curl_cookie_init() local
1001 fromfile = FALSE; in Curl_cookie_init()
1036 if(fromfile) in Curl_cookie_init()
1050 if(fromfile && fp) in Curl_cookie_init()
/external/python/cpython3/Doc/library/
Ddifflib.rst147 .. function:: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, linet…
166 times. Any or all of these may be specified using strings for *fromfile*,
173 >>> sys.stdout.writelines(context_diff(s1, s2, fromfile='before.py', tofile='after.py'))
277 .. function:: unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, linet…
297 times. Any or all of these may be specified using strings for *fromfile*,
305 >>> sys.stdout.writelines(unified_diff(s1, s2, fromfile='before.py', tofile='after.py'))
319 .. function:: diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n…
329 fromfile, tofile, fromfiledate, tofiledate, n, lineterm)``. The output of
/external/v8/tools/clang/translation_unit/
Dtest_translation_unit.py83 fromfile=os.path.relpath(expected),
/external/python/cpython2/Lib/
Ddifflib.py1156 def unified_diff(a, b, fromfile='', tofile='', fromfiledate='', argument
1203 yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)
1240 def context_diff(a, b, fromfile='', tofile='', argument
1290 yield '*** {}{}{}'.format(fromfile, fromdate, lineterm)
/external/parameter-framework/upstream/test/xml-generator/
Dtest.py82 fromfile="reference.xml",
/external/google-breakpad/src/third_party/libdisasm/swig/
DREADME46 >>> buf.fromfile( tgt, size )
/external/v8/tools/clang/scripts/
Dtest_tool.py163 fromfile=os.path.relpath(expected),
/external/python/cpython3/Lib/test/
Dtest_array.py386 self.assertRaises(TypeError, b.fromfile)
387 b.fromfile(f, len(self.example))
390 self.assertRaises(EOFError, b.fromfile, f, len(self.example)+1)
404 self.assertRaises(OSError, a.fromfile, f, len(self.example))
417 b.fromfile(f, len(self.example))
420 b.fromfile(f, len(self.example))
/external/v8/gypfiles/
Dlandmines.py142 fromfile='old_landmines', tofile='new_landmines',

12