diff --git a/keystoneauth1/extras/_saml2/v3/saml2.py b/keystoneauth1/extras/_saml2/v3/saml2.py index 7b0b37a4..696d6ff0 100644 --- a/keystoneauth1/extras/_saml2/v3/saml2.py +++ b/keystoneauth1/extras/_saml2/v3/saml2.py @@ -227,7 +227,7 @@ class _FederatedSaml(v3.FederationBaseAuth): @abc.abstractmethod def get_requests_auth(self): - raise NotImplemented() + raise NotImplementedError() def get_unscoped_auth_ref(self, session, **kwargs): method = self.get_requests_auth() diff --git a/keystoneauth1/identity/v3/base.py b/keystoneauth1/identity/v3/base.py index 837e61d9..08cc6848 100644 --- a/keystoneauth1/identity/v3/base.py +++ b/keystoneauth1/identity/v3/base.py @@ -194,7 +194,7 @@ class Auth(BaseAuth): for method in self.auth_methods: try: elements = method.get_cache_id_elements() - except NotImplemented: + except NotImplementedError: return None params.update(elements) @@ -259,7 +259,7 @@ class AuthMethod(object): should be prefixed with the plugin identifier. For example the password plugin returns its username value as 'password_username'. """ - raise NotImplemented() + raise NotImplementedError() @six.add_metaclass(abc.ABCMeta) diff --git a/keystoneauth1/identity/v3/oidc.py b/keystoneauth1/identity/v3/oidc.py index d8115ae9..08c4a365 100644 --- a/keystoneauth1/identity/v3/oidc.py +++ b/keystoneauth1/identity/v3/oidc.py @@ -280,7 +280,7 @@ class _OidcBase(federation.FederationBaseAuth): :returns: a python dictionary containing the payload to be exchanged :rtype: dict """ - raise NotImplemented() + raise NotImplementedError() class OidcPassword(_OidcBase): diff --git a/keystoneauth1/loading/base.py b/keystoneauth1/loading/base.py index 8c2b5f46..ec91d076 100644 --- a/keystoneauth1/loading/base.py +++ b/keystoneauth1/loading/base.py @@ -104,7 +104,7 @@ class BaseLoader(object): @property def plugin_class(self): - raise NotImplemented() + raise NotImplementedError() def create_plugin(self, **kwargs): """Create a plugin from the options available for the loader.