From 29c327e1abad78376ba449aee0656d9b7ea56bae Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 14 Mar 2017 17:03:37 +0100 Subject: [PATCH] Diff in the right direction. --- copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copy.py b/copy.py index 16c674b..1ba56df 100755 --- a/copy.py +++ b/copy.py @@ -18,7 +18,7 @@ def maybe_copy_file(src, dest): copy(src, dest) return with open(src) as a, open(dest) as b: - diff = unified_diff(list(a), list(b)) + diff = unified_diff(list(b), list(a)) print(''.join(list(diff))) if input("Copy {} [y,n]? ".format(src)).lower()[0] == 'y': copy(src, dest)