Giampaolo Rodola' added the comment: I can reproduce the issue on python 3.3. To have a clearer understanding on what's going on use:
import urllib.request import ftplib ftplib.FTP.debugging = 4 url = "ftp://ftp.fu-berlin.de/pub/misc/movies/database/ratings.list.gz" with urllib.request.urlopen(url): pass The problem appears to be endtransfer() erroneously calling ftp.voidresp() (it just shouldn't): http://hg.python.org/cpython/file/f6fcff683866/Lib/urllib/request.py#l2328 Patch in attachment fixes the issue. ---------- keywords: +patch Added file: http://bugs.python.org/file27606/urllib.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16270> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com