wmllint: cleanup two useless lines

As far as I can tell this lines do nothing.
1. `file_handle = None` is NOT how to close a file in python
2. The file handle is already closed due to `with open() as file_handle:`
This commit is contained in:
Andrey Bienkowski 2021-01-23 14:06:01 +03:00 committed by Elvish_Hunter
parent 2296a17e5d
commit bbf3840f82

View file

@ -3431,7 +3431,6 @@ In your case, your system interprets your arguments as:
failed_any_dirs = True
print("wmllint: skipping non-existent path %s" % directory)
continue
ofp = None
for fn in allcfgfiles(directory):
if verbose >= 2:
print(fn + ":")
@ -3505,7 +3504,6 @@ In your case, your system interprets your arguments as:
failed_any_dirs = True
print("wmllint: skipping non-existent path %s" % directory)
continue
ofp = None
for fn in allcfgfiles(directory):
if verbose >= 2:
print(fn + ":")