use not in instead of not ... in

This commit is contained in:
Patrick Kanzler 2017-01-30 00:50:58 +01:00
parent 972c7a2238
commit c48a0bee51
No known key found for this signature in database
GPG Key ID: F07F07153306FCEF
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ def get_profile_class(name):
"""For the given profile name, load the data from the external
database, then generate dynamically a class.
"""
if not name in CLASS_CACHE:
if name not in CLASS_CACHE:
profile_data = PROFILES[name]
profile_name = clean(name)
class_name = '{}{}Profile'.format(