From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 14 Nov 2025 13:08:34 +0000 (-0500) Subject: Fix `with open(...) as f:` X-Git-Tag: rec-5.4.0-alpha1~74^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16509%2Fhead;p=thirdparty%2Fpdns.git Fix `with open(...) as f:` Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- diff --git a/regression-tests/bulktest-to-json.py b/regression-tests/bulktest-to-json.py index 2c83ca6e6b..c9e28db59b 100755 --- a/regression-tests/bulktest-to-json.py +++ b/regression-tests/bulktest-to-json.py @@ -13,7 +13,7 @@ for fname in glob.glob('testresults-*.xml'): vars['tag'] = tag varnames.update(vars.keys()) stats=dict() - with open(fname) as f + with open(fname) as f: for line in f: if line.startswith('<'): sname = line.split(';')[4][:-3]