diff options
| author | Éric Araujo <merwok@netwok.org> | 2011-06-09 12:07:46 (GMT) |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2011-06-09 12:07:46 (GMT) |
| commit | e00a6703e8d13ae4ab30466998ef62098868f98c (patch) | |
| tree | a4d6fcb7fe4b323727b491c7a7b042fc0f14a657 /Lib/packaging/create.py | |
| parent | 9a82eaade3cbfba9895b6121daf8ddb65b5aaa4d (diff) | |
| parent | e6792c1e771fab4ed025beeb8f71fb2d5c7d53e8 (diff) | |
| download | cpython-e00a6703e8d13ae4ab30466998ef62098868f98c.zip cpython-e00a6703e8d13ae4ab30466998ef62098868f98c.tar.gz cpython-e00a6703e8d13ae4ab30466998ef62098868f98c.tar.bz2 | |
Branch merge
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 c18d42f..917b6cf 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) |
