This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akira
Recipients akira, techtonik
Date 2012-11-05.15:01:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352127696.25.0.765592353517.issue16409@psf.upfronthosting.co.za>
In-reply-to
Content
The summary assumes that issue 10050 is valid i.e., urlretrieve is
reimplemented using new urlopen and 2.x FancyURLopener is deprecated.

It might not be so [1]. In this case the summary is incorrect.

Old implementation is available as:

  opener = FancyURLopener()
  urlretrieve = opener.retrieve

btw, the new implementation doesn't prevent you to estimate the 
progress:

  def make_reporthook():
      read = 0  # number of bytes read so far
      def reporthook(blocknum, blocksize, totalsize):
          nonlocal read
          read += blocksize
          if totalsize > 0:
              percent = read * 1e2 / totalsize
              print("%5.1f%% %*d / %d" % (
                      percent, len(str(totalsize)), read, totalsize))
          else:
              print("read %d" % (read,))
      return reporthook


[1]: http://mail.python.org/pipermail/python-dev/2011-March/109450.html
History
Date User Action Args
2012-11-05 15:01:36akirasetrecipients: + akira, techtonik
2012-11-05 15:01:36akirasetmessageid: <1352127696.25.0.765592353517.issue16409@psf.upfronthosting.co.za>
2012-11-05 15:01:36akiralinkissue16409 messages
2012-11-05 15:01:35akiracreate