[Python-checkins] distutils2: Remove two unneeded attributes

eric.araujo python-checkins at python.org
Wed Sep 21 16:35:45 CEST 2011


http://hg.python.org/distutils2/rev/586dd5bb494c
changeset:   1183:586dd5bb494c
user:        Éric Araujo <merwok at netwok.org>
date:        Wed Sep 21 16:31:25 2011 +0200
summary:
  Remove two unneeded attributes

files:
  distutils2/command/install_dist.py |  1 -
  distutils2/pypi/simple.py          |  8 +++-----
  2 files changed, 3 insertions(+), 6 deletions(-)


diff --git a/distutils2/command/install_dist.py b/distutils2/command/install_dist.py
--- a/distutils2/command/install_dist.py
+++ b/distutils2/command/install_dist.py
@@ -186,7 +186,6 @@
         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/distutils2/pypi/simple.py b/distutils2/pypi/simple.py
--- a/distutils2/pypi/simple.py
+++ b/distutils2/pypi/simple.py
@@ -118,10 +118,9 @@
     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 = urlparse.urlparse(index_url)
@@ -327,9 +326,8 @@
                                 infos = get_infos_from_url(link, project_name,
                                             is_external=self.index_url not in url)
                             except CantParseArchiveName, 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:

-- 
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list