summaryrefslogtreecommitdiffstats
path: root/lib/ansible/playbook/handler.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 16:16:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 16:16:47 +0000
commit7a7fb74454bb3a169acecd30e87067502bfe3260 (patch)
treed684cbea7ffc70bd39a1e52bb65b0ea5ae156bda /lib/ansible/playbook/handler.py
parentAdding upstream version 2.16.6. (diff)
downloadansible-core-7a7fb74454bb3a169acecd30e87067502bfe3260.tar.xz
ansible-core-7a7fb74454bb3a169acecd30e87067502bfe3260.zip
Adding upstream version 2.17.0.upstream/2.17.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/ansible/playbook/handler.py')
-rw-r--r--lib/ansible/playbook/handler.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ansible/playbook/handler.py b/lib/ansible/playbook/handler.py
index 2f28398..09f122e 100644
--- a/lib/ansible/playbook/handler.py
+++ b/lib/ansible/playbook/handler.py
@@ -15,9 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-# Make coding more python3-ish
-from __future__ import (absolute_import, division, print_function)
-__metaclass__ = type
+from __future__ import annotations
from ansible.playbook.attribute import NonInheritableFieldAttribute
from ansible.playbook.task import Task
@@ -36,7 +34,7 @@ class Handler(Task):
super(Handler, self).__init__(block=block, role=role, task_include=task_include)
def __repr__(self):
- ''' returns a human readable representation of the handler '''
+ ''' returns a human-readable representation of the handler '''
return "HANDLER: %s" % self.get_name()
@staticmethod