diff --git a/Doc/library/packaging.pypi.simple.rst b/Doc/library/packaging.pypi.simple.rst index 92b3270f10d52460a45e1270e8728f9d8d375263..9153738156b132d148f640d1af4c4c189354440b 100644 --- a/Doc/library/packaging.pypi.simple.rst +++ b/Doc/library/packaging.pypi.simple.rst @@ -24,7 +24,7 @@ API prefer_final=False, prefer_source=True, \ hosts=('*',), follow_externals=False, \ mirrors_url=None, mirrors=None, timeout=15, \ - mirrors_max_tries=0, verbose=False) + mirrors_max_tries=0) *index_url* is the address of the index to use for requests. diff --git a/Lib/packaging/command/install_dist.py b/Lib/packaging/command/install_dist.py index 4fbca7e72d33083bfdb11ce6d751780f2884e67d..ce7015eeb4654242767feefed04211b5af120798 100644 --- a/Lib/packaging/command/install_dist.py +++ b/Lib/packaging/command/install_dist.py @@ -176,7 +176,6 @@ class install_dist(Command): self.installer = None self.requested = None self.no_record = None - self.no_resources = None # -- Option finalizing methods ------------------------------------- # (This is rather more involved than for most commands, diff --git a/Lib/packaging/pypi/simple.py b/Lib/packaging/pypi/simple.py index 9faabaa6b6b3330f40740d6127f7e66ebe5d2019..e01e033c4687b798fe414d2fa869d7d2f864239a 100644 --- a/Lib/packaging/pypi/simple.py +++ b/Lib/packaging/pypi/simple.py @@ -119,10 +119,9 @@ class Crawler(BaseClient): def __init__(self, index_url=DEFAULT_SIMPLE_INDEX_URL, prefer_final=False, prefer_source=True, hosts=DEFAULT_HOSTS, follow_externals=False, mirrors_url=None, mirrors=None, - timeout=SOCKET_TIMEOUT, mirrors_max_tries=0, verbose=False): + timeout=SOCKET_TIMEOUT, mirrors_max_tries=0): super(Crawler, self).__init__(prefer_final, prefer_source) self.follow_externals = follow_externals - self.verbose = verbose # mirroring attributes. parsed = urllib.parse.urlparse(index_url) @@ -322,9 +321,8 @@ class Crawler(BaseClient): infos = get_infos_from_url(link, project_name, is_external=self.index_url not in url) except CantParseArchiveName as e: - if self.verbose: - logger.warning( - "version has not been parsed: %s", e) + logger.warning( + "version has not been parsed: %s", e) else: self._register_release(release_info=infos) else: