summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2020-05-13 19:44:16 -0700
committerToshio Kuratomi <a.badger@gmail.com>2020-05-14 09:14:37 -0700
commit957ad8e76982a2f0c0a5da55e06e50b179096fcf (patch)
tree0f5e08eaa39e52ac74cc8816e94c62807bc709c5 /hacking
parenta3c400d0ce9da2bbd25eee84838f4427113714e2 (diff)
downloadansible-957ad8e76982a2f0c0a5da55e06e50b179096fcf.tar.gz
Fix the command plugin to use the ABCMeta metaclass
The abstract* decorators don't have any effect unless the class has an ABCMeta metaclass.
Diffstat (limited to 'hacking')
-rw-r--r--hacking/build_library/build_ansible/commands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/hacking/build_library/build_ansible/commands.py b/hacking/build_library/build_ansible/commands.py
index e689e25a37..826799349e 100644
--- a/hacking/build_library/build_ansible/commands.py
+++ b/hacking/build_library/build_ansible/commands.py
@@ -10,17 +10,17 @@ __metaclass__ = type
from abc import ABCMeta, abstractmethod, abstractproperty
-class Command:
+class Command(metaclass=ABCMeta):
"""
Subcommands of :program:`build-ansible.py`.
- This defines an interface that all subcommands must conform to. :program:`build-ansible.py` will
- require that these things are present in order to proceed.
+ This defines an interface that all subcommands must conform to. :program:`build-ansible.py`
+ will require that these things are present in order to proceed.
"""
@staticmethod
@abstractproperty
def name():
- """Name of the command. The same as the string is invoked with"""
+ """Name of the subcommand. It's the string to invoked it via on the command line"""
@staticmethod
@abstractmethod