consistent 'with open(…) as fp:' syntax

This commit is contained in:
Mike Fährmann
2024-06-14 01:22:00 +02:00
parent 3fc2e61818
commit 9c65db2a92
15 changed files with 46 additions and 46 deletions

View File

@@ -239,8 +239,8 @@ def main():
os.makedirs(args.target, exist_ok=True)
for name, tests in collect_tests(args.category).items():
name = name.replace(".", "")
with util.lazy(f"{args.target}/{name}.py") as file:
file.write(export_tests(tests))
with util.lazy(f"{args.target}/{name}.py") as fp:
fp.write(export_tests(tests))
if __name__ == "__main__":