Rock Lee added the comment: Fixed like this:
raise URLError('ftp error: %d' % int(str(reason)[:3])) from reason I think this is the original author's intention. Actually, need to fix two places in urllib/request.py ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17933> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com