Skip to content

Commit c853404

Browse files
fixed an error in diff util project
1 parent b7390a6 commit c853404

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

projects/Diff_Util/diff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
orignal = sys.argv[1]
1313
changed = sys.argv[2]
1414

15-
orignal_contents = open(orignal, "r").readlines().close()
16-
changed_contents = open(changed, "r").readlines().close()
15+
orignal_contents = open(orignal, "r").readlines()
16+
changed_contents = open(changed, "r").readlines()
1717

1818
color = "green"
1919
symbol = f"[bold {color}][+]"

0 commit comments

Comments
 (0)