Merge "Raise NotImplementedError instead of NotImplemented"

This commit is contained in:
Jenkins 2016-09-17 04:50:54 +00:00 committed by Gerrit Code Review
commit edeb84715c
4 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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)

View File

@ -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):

View File

@ -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.