Style change in packaging: use “not in” over “not x in”.

Such tests are IMO easier to read if both operators are grouped.
This commit is contained in:
Éric Araujo 2011-06-08 04:47:13 +02:00
parent 46bdcf7d4b
commit df8ef02488
5 changed files with 16 additions and 16 deletions

View file

@ -175,11 +175,11 @@ def convert_yn_to_bool(yn, yes=True, no=False):
def _build_classifiers_dict(classifiers):
d = {}
for key in classifiers:
subDict = d
subdict = d
for subkey in key.split(' :: '):
if not subkey in subDict:
subDict[subkey] = {}
subDict = subDict[subkey]
if subkey not in subdict:
subdict[subkey] = {}
subdict = subdict[subkey]
return d
CLASSIFIERS = _build_classifiers_dict(_CLASSIFIERS_LIST)