Fix improvements
This commit is contained in:
parent
4b70feede1
commit
7ea68064d8
@ -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 + ": "
|
||||||
|
Loading…
Reference in New Issue
Block a user