Fix improvements

This commit is contained in:
Flakebi 2014-06-04 18:27:32 +02:00
parent 4b70feede1
commit 7ea68064d8

View File

@ -55,9 +55,10 @@ def main():
src_file.close() src_file.close()
# writing back # writing back
src_file = open(dirpath + "/" + filename, "w") if modified:
src_file.write("".join(lines)) src_file = open(dirpath + "/" + filename, "w")
src_file.close() src_file.write("".join(lines))
src_file.close()
if statistics: if statistics:
print("Total number of files in " + directory + ": " print("Total number of files in " + directory + ": "