From 8a38027c40d5d3db7d623f01498478e4d9023bb7 Mon Sep 17 00:00:00 2001 From: Eero Aaltonen Date: Sun, 1 Mar 2026 23:12:54 +0200 Subject: [PATCH] fixup: license header and Python2isms Remove obvious Python2isms. If I missed something, a list of things to avoid would be appreciated. --- plugins/action/pgp_keyring.py | 4 ++-- plugins/modules/pgp_keyring.py | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/plugins/action/pgp_keyring.py b/plugins/action/pgp_keyring.py index f5c410fef6..48901117fc 100644 --- a/plugins/action/pgp_keyring.py +++ b/plugins/action/pgp_keyring.py @@ -1,6 +1,6 @@ # Copyright: (c) 2025–2026, Eero Aaltonen -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later from __future__ import annotations diff --git a/plugins/modules/pgp_keyring.py b/plugins/modules/pgp_keyring.py index 9c888dbc57..fb4473da12 100644 --- a/plugins/modules/pgp_keyring.py +++ b/plugins/modules/pgp_keyring.py @@ -1,13 +1,8 @@ -# -*- coding: utf-8 -*- # Copyright: (c) 2025–2026, Eero Aaltonen -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -# This module is implemented as an action plugin and runs on the controller +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later from __future__ import annotations -from __future__ import (absolute_import, division, print_function) -__metaclass__ = type - DOCUMENTATION = r""" ---