Fix restore (difflib.restore() became a generator too).

This commit is contained in:
Tim Peters 2001-09-22 21:59:18 +00:00
parent 8a9c284437
commit 42b6877293
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ def main(args):
def restore(which):
restored = difflib.restore(sys.stdin.readlines(), which)
sys.stdout.writelines(restored)
for line in restored:
print line,
if __name__ == '__main__':
args = sys.argv[1:]