Skip to content

Commit

Permalink
added closing of the file in the end and breaking of the loop when fi…
Browse files Browse the repository at this point in the history
…le is fixed
  • Loading branch information
JaksaVucicevic committed Feb 21, 2012
1 parent b626633 commit c0fd5e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ def FixFile(fname) :
if CheckForN(line) :
print Fname, line
FixFile(Fname)
break
F.close()


0 comments on commit c0fd5e3

Please sign in to comment.