Cleanup: Remove pointless calls to close()

Since "with open()" automatically closes the files anyway.
This commit is contained in:
Bananaman
2023-03-24 22:37:01 +01:00
parent 214687c9ce
commit 973ec01b38
7 changed files with 0 additions and 11 deletions

View File

@@ -49,7 +49,6 @@ def get_game(task, datatypes, current_time, parent_widget, appmanifest, steam_di
with open(appmanifest, "r") as open_file:
data = open_file.read()
open_file.close()
for datatype in datatypes:
value = re.findall(f'"{datatype}"\t\t"(.*)"\n', data)
values[datatype] = value[0]