From 6bb5bf8dc7637e482eada432475ea71a37f470d3 Mon Sep 17 00:00:00 2001 From: Eero Aaltonen Date: Sun, 15 Mar 2026 22:41:21 +0200 Subject: [PATCH] fixup remove use of delete_on_close added python 3.12 --- plugins/action/pgp_keyring.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/action/pgp_keyring.py b/plugins/action/pgp_keyring.py index cee06aec4e..34f702feab 100644 --- a/plugins/action/pgp_keyring.py +++ b/plugins/action/pgp_keyring.py @@ -63,10 +63,9 @@ class ActionModule(ActionBase): new_task = self._task.copy() - with tempfile.NamedTemporaryFile('wb', delete=True, delete_on_close=False) as f: + with tempfile.NamedTemporaryFile('wb', delete=True) as f: f.write(bytes(key)) f.flush() - f.close() new_task.args.update( dict(