Lines Matching refs:fromfile
139 .. 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)
760 with open(fromfile, 'U') as f:
766 diff = difflib.unified_diff(fromlines, tolines, fromfile, tofile,
771 diff = difflib.HtmlDiff().make_file(fromlines, tolines, fromfile,
775 diff = difflib.context_diff(fromlines, tolines, fromfile, tofile,