4
4
Diff and patch functionality
6
6
__docformat__ = "restructuredtext"
9
process = Popen(args, bufsize=len(input), stdin=PIPE, stdout=PIPE,
8
18
def patch(patch_contents, filename, output_filename=None, reverse=False):
9
19
"""Apply a patch to a file, to produce another output file. This is should
10
20
be suitable for our limited purposes.