diff options
author | Dolph Mathews <dolph.mathews@gmail.com> | 2013-05-23 14:09:09 -0500 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-05-23 23:48:04 +0000 |
commit | 67175a667308e534c1d55931322bbd36e1e0a7c5 (patch) | |
tree | 32cc99c03c99899ce2d43711e558961345d56a90 /keystone/trust | |
parent | 71c6a4b88279ddf9047595fb4c1ffbce4062621d (diff) | |
download | keystone-67175a667308e534c1d55931322bbd36e1e0a7c5.tar.gz keystone-67175a667308e534c1d55931322bbd36e1e0a7c5.tar.xz keystone-67175a667308e534c1d55931322bbd36e1e0a7c5.zip |
use the 'not in' operator (flake8 H902)
... when evaluating membership in a collection.
Change-Id: I3fd3d5b5d5ea505833be50193b8969f8c4feb135
Diffstat (limited to 'keystone/trust')
-rw-r--r-- | keystone/trust/controllers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keystone/trust/controllers.py b/keystone/trust/controllers.py index 01ebc176..1d7dce6c 100644 --- a/keystone/trust/controllers.py +++ b/keystone/trust/controllers.py @@ -64,7 +64,7 @@ class TrustV3(controller.V3Controller): (trust['expires_at'], subsecond=True)) - if not 'roles' in trust: + if 'roles' not in trust: trust['roles'] = [] trust_full_roles = [] for trust_role in trust['roles']: |