393
393
"""Iterate through a series of lines with a patch applied.
394
394
This handles a single file, and does exact, not fuzzy patching.
397
397
get_patch_names(patch_lines)
398
398
return iter_patched_from_hunks(orig_lines, iter_hunks(patch_lines))
400
401
def iter_patched_from_hunks(orig_lines, hunks):
403
410
if orig_lines is not None:
406
413
while line_no < hunk.orig_pos:
407
414
orig_line = orig_lines.next()