jjlee / mechanize

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

bug in ftpwrapper #21

Closed williamratcliff closed 14 years ago

williamratcliff commented 14 years ago

I notice that if I try to follow an ftp:// type link, there is a crash.
This is because in the _urllib2_fork.py, it imports ftpwrapper from urllib. This function expects 6 arguments, but throughout the _urllib2_fork.py file, a timeout argument is given, which causes it to choke...

jjlee commented 14 years ago

Thanks. Presumably you're using Python 2.4 or Python 2.5?

williamratcliff commented 14 years ago

Python 2.5 Cheers, William

jjlee commented 14 years ago

Fix TypeError on .open()ing ftp: URL

Only affects Python 2.4 and 2.5, since they don't have timeout support.

Closed by abebd7589ca334c8855557daa1ea5bc12f18f39c