jjlee / mechanize

Stateful programmatic web browsing in Python, after Andy Lester's Perl module WWW::Mechanize .
http://wwwsearch.sourceforge.net/mechanize/
618 stars 121 forks source link

Update _opener.py #91

Open on2valhalla opened 10 years ago

on2valhalla commented 10 years ago

size should always be reported if it exists, not only when reporthook is valid. Also, dont need the repetitive initial call to reporthook. changed up the loop to make it more pythonic.

I was trying to find a memory error that is showing up on OSX for extremely large files > 30GB.

jamesbroadhead commented 7 years ago

Thank you for your contribution to mechanize!

Following the process in #117, future work on mechanize will be occurring here: https://github.com/python-mechanize/mechanize.

Please re-file your PR there (where it will get attention, and hopefully merged)