This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Description
In the check_file function of Build/check_indents.py, it is performing a redundant list call, on f.readlines() which itself returns a list, in line 28:
def check_file(filename : str) -> bool:
...
with open(filename, 'r') as f:
contents = list(f.readlines())
...
This can have impact on performance, if the file is really large. This does not have any benefit over the plain f.readlines() either.
I propose the following change:
- contents = list(f.readlines())
+ contents = f.readlines()