From 2fa2cd2254a4044aaa584c4fcf5d6c3e1ec60d1f Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 25 Jun 2012 17:33:25 +0200 Subject: Fix several PEP-8 issues As found by pep8 version 1.2. Change-Id: I5d40294416db0410fa7d9c82ea8efe8efadd0f58 --- nova/consoleauth/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/consoleauth') diff --git a/nova/consoleauth/manager.py b/nova/consoleauth/manager.py index 09f9a4046..049ce1fce 100644 --- a/nova/consoleauth/manager.py +++ b/nova/consoleauth/manager.py @@ -71,7 +71,7 @@ class ConsoleAuthManager(manager.Manager): def check_token(self, context, token): token_str = self.mc.get(token) - token_valid = (token_str != None) + token_valid = (token_str is not None) LOG.audit(_("Checking Token: %(token)s, %(token_valid)s)"), locals()) if token_valid: return jsonutils.loads(token_str) -- cgit