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:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 16:16:49 +0000
commit48e387c5c12026a567eb7b293a3a590241c0cecb (patch)
tree80f2573be2d7d534b8ac4d2a852fe43f7ac35324 /lib/ansible/playbook/handler.py
parentReleasing progress-linux version 2.16.6-1~progress7.99u1. (diff)
downloadansible-core-48e387c5c12026a567eb7b293a3a590241c0cecb.tar.xz
ansible-core-48e387c5c12026a567eb7b293a3a590241c0cecb.zip
Merging upstream version 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