diff options
author | Steven Gonzales <stevendgonzales@gmail.com> | 2014-05-12 07:41:52 -0500 |
---|---|---|
committer | Steven Gonzales <stevendgonzales@gmail.com> | 2014-05-12 07:41:52 -0500 |
commit | 6d6eff37a2bdfbdd293970f161d51b37ad3fa12e (patch) | |
tree | af5db03014573dfca1569d8f3a97f0cd154e7248 | |
parent | 80cd5724397d0c9c3371f7290591f9b06f610f88 (diff) | |
download | python-barbicanclient-6d6eff37a2bdfbdd293970f161d51b37ad3fa12e.tar.gz |
Metaclass Python 3.x Compatibility
According to the OpenStack style guide (http://docs.openstack.org/developer/hacking/), for Python 3.x compatibility use "six.add_metaclass" instead of " __metaclass__."
Change-Id: Iff090dfaf53af17012fe28f732c157caabc1841c
-rw-r--r-- | barbicanclient/common/auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/barbicanclient/common/auth.py b/barbicanclient/common/auth.py index aeefd4d..d858101 100644 --- a/barbicanclient/common/auth.py +++ b/barbicanclient/common/auth.py @@ -19,6 +19,7 @@ import logging from keystoneclient.v2_0 import client as ksclient from keystoneclient import exceptions import requests +import six LOG = logging.getLogger(__name__) @@ -29,11 +30,10 @@ class AuthException(Exception): pass +@six.add_metaclass(abc.ABCMeta) class AuthPluginBase(object): """Base class for Auth plugins.""" - __metaclass__ = abc.ABCMeta - @abc.abstractproperty def auth_token(self): """ |