From fdae5ad1221d4b790b225687c9a92eb96cea5689 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 30 Jun 2026 07:07:31 +0200 Subject: [PATCH] App.get_value(): Remove redundant fd.close() The fd.close() call inside the `with open(...) as fd:` block is redundant because the file handle is managed by the context manager. Remove it. Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL and pi.dev Signed-off-by: Jan Lindemann --- src/python/jw/pkg/App.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/python/jw/pkg/App.py b/src/python/jw/pkg/App.py index aa11b102..a3583459 100644 --- a/src/python/jw/pkg/App.py +++ b/src/python/jw/pkg/App.py @@ -545,7 +545,6 @@ class App(Base): try: with open(version_path) as fd: ret = fd.read().replace('\n', '').replace('-dev', '') - fd.close() return ret except EnvironmentError: log(DEBUG, f'Ignoring unreadable file "{version_path}"')