mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +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
|
@ -283,7 +283,7 @@ class Crawler(BaseClient):
|
|||
name = release.name
|
||||
else:
|
||||
name = release_info['name']
|
||||
if not name.lower() in self._projects:
|
||||
if name.lower() not in self._projects:
|
||||
self._projects[name.lower()] = ReleasesList(name, index=self._index)
|
||||
|
||||
if release:
|
||||
|
@ -321,7 +321,7 @@ class Crawler(BaseClient):
|
|||
# it's a distribution, so create a dist object
|
||||
try:
|
||||
infos = get_infos_from_url(link, project_name,
|
||||
is_external=not self.index_url in url)
|
||||
is_external=self.index_url not in url)
|
||||
except CantParseArchiveName as e:
|
||||
if self.verbose:
|
||||
logger.warning(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue