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