/external/python/cpython2/Tools/scripts/ |
D | diff.py | 36 tolines = open(tofile, '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/cpython3/Tools/scripts/ |
D | diff.py | 46 tolines = tf.readlines() 49 diff = difflib.unified_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n) 51 diff = difflib.ndiff(fromlines, tolines) 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/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): 1561 tolines.append((to_line,found_diff)) 1564 to_line, to_diff = tolines.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 1753 tolines = [expand_tabs(line) for line in tolines] [all …]
|
/external/python/cpython3/Lib/ |
D | difflib.py | 1381 def _mdiff(fromlines, tolines, context=None, linejunk=None, argument 1421 diff_lines_iterator = ndiff(fromlines,tolines,linejunk,charjunk) 1581 fromlines,tolines=[],[] 1584 while (len(fromlines)==0 or len(tolines)==0): 1592 tolines.append((to_line,found_diff)) 1595 to_line, to_diff = tolines.pop(0) 1742 def make_file(self, fromlines, tolines, fromdesc='', todesc='', argument 1764 table=self.make_table(fromlines, tolines, fromdesc, todesc, 1769 def _tab_newline_replace(self,fromlines,tolines): argument 1789 tolines = [expand_tabs(line) for line in tolines] [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 761 tolines = open(tofile, '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,
|
/external/python/cpython3/Doc/library/ |
D | difflib.rst | 110 .. method:: make_file(fromlines, tolines, fromdesc='', todesc='', context=False, \ 113 Compares *fromlines* and *tolines* (lists of strings) and returns a string which 134 .. method:: make_table(fromlines, tolines, fromdesc='', todesc='', context=False, numlines=5) 136 Compares *fromlines* and *tolines* (lists of strings) and returns a string which
|