diff options
| author | Sascha Peilicke <saschpe@suse.de> | 2012-06-25 17:33:25 +0200 |
|---|---|---|
| committer | Sascha Peilicke <saschpe@suse.de> | 2012-06-26 10:46:42 +0200 |
| commit | 2fa2cd2254a4044aaa584c4fcf5d6c3e1ec60d1f (patch) | |
| tree | 0ffd107b0f7468ca0b3b2e5171629dd9f65693ee /nova/consoleauth | |
| parent | ca1f1d39b8ee85f55d5b656f7db946f855be5cb2 (diff) | |
| download | nova-2fa2cd2254a4044aaa584c4fcf5d6c3e1ec60d1f.tar.gz nova-2fa2cd2254a4044aaa584c4fcf5d6c3e1ec60d1f.tar.xz nova-2fa2cd2254a4044aaa584c4fcf5d6c3e1ec60d1f.zip | |
Fix several PEP-8 issues
As found by pep8 version 1.2.
Change-Id: I5d40294416db0410fa7d9c82ea8efe8efadd0f58
Diffstat (limited to 'nova/consoleauth')
| -rw-r--r-- | nova/consoleauth/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
