mirror of
https://github.com/python/cpython.git
synced 2025-11-13 23:46:24 +00:00
Fix restore (difflib.restore() became a generator too).
This commit is contained in:
parent
8a9c284437
commit
42b6877293
1 changed files with 2 additions and 1 deletions
|
|
@ -118,7 +118,8 @@ def main(args):
|
||||||
|
|
||||||
def restore(which):
|
def restore(which):
|
||||||
restored = difflib.restore(sys.stdin.readlines(), which)
|
restored = difflib.restore(sys.stdin.readlines(), which)
|
||||||
sys.stdout.writelines(restored)
|
for line in restored:
|
||||||
|
print line,
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
args = sys.argv[1:]
|
args = sys.argv[1:]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue