mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
46bdcf7d4b
commit
df8ef02488
5 changed files with 16 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue