diff options
author | Éric Araujo <merwok@netwok.org> | 2011-06-09 14:07:46 +0200 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-06-09 14:07:46 +0200 |
commit | e00a6703e8d13ae4ab30466998ef62098868f98c (patch) | |
tree | a4d6fcb7fe4b323727b491c7a7b042fc0f14a657 /Lib/packaging/pypi/dist.py | |
parent | 9a82eaade3cbfba9895b6121daf8ddb65b5aaa4d (diff) | |
parent | e6792c1e771fab4ed025beeb8f71fb2d5c7d53e8 (diff) | |
download | cpython-git-e00a6703e8d13ae4ab30466998ef62098868f98c.tar.gz |
Branch merge
Diffstat (limited to 'Lib/packaging/pypi/dist.py')
-rw-r--r-- | Lib/packaging/pypi/dist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/packaging/pypi/dist.py b/Lib/packaging/pypi/dist.py index db04cdaa70..d3824c22e8 100644 --- a/Lib/packaging/pypi/dist.py +++ b/Lib/packaging/pypi/dist.py @@ -256,7 +256,7 @@ class DistInfo(IndexReference): hashlib.new(hashname) except ValueError: raise UnsupportedHashName(hashname) - if not url in [u['url'] for u in self.urls]: + if url not in [u['url'] for u in self.urls]: self.urls.append({ 'url': url, 'hashname': hashname, @@ -329,7 +329,7 @@ class DistInfo(IndexReference): url param""" hashname = self.url['hashname'] expected_hashval = self.url['hashval'] - if not None in (expected_hashval, hashname): + if None not in (expected_hashval, hashname): with open(filename, 'rb') as f: hashval = hashlib.new(hashname) hashval.update(f.read()) @@ -409,7 +409,7 @@ class ReleasesList(IndexReference): (release.name, self.name)) version = str(release.version) - if not version in self.get_versions(): + if version not in self.get_versions(): # append only if not already exists self.releases.append(release) for dist in release.dists.values(): |