diff options
author | Éric Araujo <merwok@netwok.org> | 2011-06-08 04:47:13 +0200 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-06-08 04:47:13 +0200 |
commit | df8ef02488227ab88969360eea5c34bc364aa758 (patch) | |
tree | 706fd287f755a734f50f4c12fb1b55aac659527e /Lib/packaging/create.py | |
parent | 46bdcf7d4b966f733aaeb609b7e15903f8bf6ec4 (diff) | |
download | cpython-git-df8ef02488227ab88969360eea5c34bc364aa758.tar.gz |
Style change in packaging: use “not in” over “not x in”.
Such tests are IMO easier to read if both operators are grouped.
Diffstat (limited to 'Lib/packaging/create.py')
-rw-r--r-- | Lib/packaging/create.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/packaging/create.py b/Lib/packaging/create.py index c18d42fb02..917b6cf849 100644 --- a/Lib/packaging/create.py +++ b/Lib/packaging/create.py @@ -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) |