summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-10-04 18:15:37 +0000
committerGerrit Code Review <review@openstack.org>2022-10-04 18:15:37 +0000
commitd1b46e9f97a990cc8456ecfc7efc5263a41f24ba (patch)
treea1485999d4d0be0d4290572af1f4787e5ab65766
parent9614d30450c642dd176ba00e6b6c2a893d742171 (diff)
parent4ba0a97f85483add9a03db4031d9c2bd6f11dd11 (diff)
downloadcliff-d1b46e9f97a990cc8456ecfc7efc5263a41f24ba.tar.gz
Merge "Replace abc.abstractproperty with property and abc.abstractmethod"
-rw-r--r--cliff/display.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cliff/display.py b/cliff/display.py
index 5ea0713..44eadd5 100644
--- a/cliff/display.py
+++ b/cliff/display.py
@@ -29,11 +29,13 @@ class DisplayCommandBase(command.Command, metaclass=abc.ABCMeta):
cmd_name=cmd_name)
self._formatter_plugins = self._load_formatter_plugins()
- @abc.abstractproperty
+ @property
+ @abc.abstractmethod
def formatter_namespace(self):
"String specifying the namespace to use for loading formatter plugins."
- @abc.abstractproperty
+ @property
+ @abc.abstractmethod
def formatter_default(self):
"String specifying the name of the default formatter."