Fix restore (difflib.restore() became a generator too).
This commit is contained in:
parent
8a9c284437
commit
42b6877293
|
@ -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:]
|
||||
|
|
Loading…
Reference in New Issue