Searched refs:fromlines (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Tools/scripts/ |
D | diff.py | 35 fromlines = open(fromfile, 'U').readlines() 39 diff = difflib.unified_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n) 41 diff = difflib.ndiff(fromlines, tolines) 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/cpython2/Lib/ |
D | difflib.py | 1350 def _mdiff(fromlines, tolines, context=None, linejunk=None, argument 1390 diff_lines_iterator = ndiff(fromlines,tolines,linejunk,charjunk) 1553 fromlines,tolines=[],[] 1556 while (len(fromlines)==0 or len(tolines)==0): 1559 fromlines.append((from_line,found_diff)) 1563 from_line, fromDiff = fromlines.pop(0) 1709 def make_file(self,fromlines,tolines,fromdesc='',todesc='',context=False, argument 1730 table = self.make_table(fromlines,tolines,fromdesc,todesc, 1733 def _tab_newline_replace(self,fromlines,tolines): argument 1752 fromlines = [expand_tabs(line) for line in fromlines] [all …]
|
/external/python/cpython2/Doc/library/ |
D | difflib.rst | 104 .. function:: make_file(fromlines, tolines [, fromdesc][, todesc][, context][, numlines]) 106 Compares *fromlines* and *tolines* (lists of strings) and returns a string which 124 .. function:: make_table(fromlines, tolines [, fromdesc][, todesc][, context][, numlines]) 126 Compares *fromlines* and *tolines* (lists of strings) and returns a string which 760 fromlines = open(fromfile, 'U').readlines() 764 diff = difflib.unified_diff(fromlines, tolines, fromfile, tofile, 767 diff = difflib.ndiff(fromlines, tolines) 769 diff = difflib.HtmlDiff().make_file(fromlines, tolines, fromfile, 773 diff = difflib.context_diff(fromlines, tolines, fromfile, tofile,
|