diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-01-07 14:00:55 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-01-07 14:00:55 +0000 |
commit | 1afa11400917806bf4254c901887360d33024c84 (patch) | |
tree | 14d4f9ddc2d22392a88e258c4cc116f09a2e91a7 | |
parent | 61c74fc645ceb3eacb987ffe35d39dff81064f3e (diff) | |
parent | 5db8b0a93a11374940401e1bd73549558a85b105 (diff) | |
download | pycadf-1afa11400917806bf4254c901887360d33024c84.tar.gz |
Merge "Python 3: use six.with_metaclass"
-rw-r--r-- | pycadf/cadftype.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pycadf/cadftype.py b/pycadf/cadftype.py index 89dffd5..5702e4f 100644 --- a/pycadf/cadftype.py +++ b/pycadf/cadftype.py @@ -17,6 +17,7 @@ # under the License. import abc +import six from pycadf.openstack.common import jsonutils @@ -73,9 +74,8 @@ class ValidatorDescriptor(object): raise ValueError('%s must not be None.' % self.name) -class CADFAbstractType(object): +class CADFAbstractType(six.with_metaclass(abc.ABCMeta, object)): """The abstract base class for all CADF (complex) data types (classes).""" - __metaclass__ = abc.ABCMeta @abc.abstractmethod def is_valid(self, value): |