summaryrefslogtreecommitdiff
path: root/cliff/show.py
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2014-06-03 08:04:44 +0200
committerChristian Berendt <berendt@b1-systems.de>2014-06-03 11:03:48 +0200
commit9315a324773361e1b27e91833157d6bf528aa20b (patch)
treea64a2a4fced445b86effe33f4fb68f8fd961f10e /cliff/show.py
parent4bdf5fc90ee3e84ac675f5f26f7a0d94aacf91c5 (diff)
downloadcliff-9315a324773361e1b27e91833157d6bf528aa20b.tar.gz
Use six.add_metaclass instead of __metaclass__
According to http://docs.openstack.org/developer/hacking/ it should be preferred to use six.add_metaclass instead of __metaclass__. Change-Id: I33a0d1b0a0a31beacc8c768eb18fac3cb9ed5936
Diffstat (limited to 'cliff/show.py')
-rw-r--r--cliff/show.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cliff/show.py b/cliff/show.py
index 855b2d2..00fd4ff 100644
--- a/cliff/show.py
+++ b/cliff/show.py
@@ -4,16 +4,18 @@ import abc
import itertools
import logging
+import six
+
from .display import DisplayCommandBase
LOG = logging.getLogger(__name__)
+@six.add_metaclass(abc.ABCMeta)
class ShowOne(DisplayCommandBase):
"""Command base class for displaying data about a single object.
"""
- __metaclass__ = abc.ABCMeta
@property
def formatter_namespace(self):