Skip to content

Update Python scripts to use the safer "with open() as" Python syntax

Update Python scripts to use the safer "with open() as" Python syntax.

  • This modern syntax reduces code size, since files no longer need to be explicitly closed.
  • Ensures files are always closed, even if an exception is raised.
Edited by Tom Henderson

Merge request reports