From f2792d7d07adb18a9fe676f28e589ebac6ed61a1 Mon Sep 17 00:00:00 2001 From: Ji-Wei Date: Mon, 5 Sep 2016 18:10:12 +0800 Subject: [PATCH] Raise NotImplementedError instead of NotImplemented NotImplementedError is the name of the exception (https://docs.python.org/2/library/exceptions.html). NotImplemented is the name of a constant (https://docs.python.org/2/library/constants.html). This patch fix it. Change-Id: If0c220b8fc8480e5904400e9086935944bce728a Closes-Bug: #1339855 --- keystonemiddleware/auth_token/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystonemiddleware/auth_token/__init__.py b/keystonemiddleware/auth_token/__init__.py index 0db3b04a..96823fd7 100644 --- a/keystonemiddleware/auth_token/__init__.py +++ b/keystonemiddleware/auth_token/__init__.py @@ -407,7 +407,7 @@ class BaseAuthProtocol(object): :returns: The token data :rtype: dict """ - raise NotImplemented() + raise NotImplementedError() def process_response(self, response): """Do whatever you'd like to the response.