Rock Lee added the comment:

Bug in urllib/request.py.
format string formatted error type variable 

 2373 except ftplib.error_perm as reason:
 2374           raise URLError('ftp error: %d' % reason) from reason

variable reason here is a instance of class ftplib.error_perm.
We need to passed in a integer object. 

Patch supplied.

----------
keywords: +patch
nosy: +rock
Added file: 
http://bugs.python.org/file30967/urllib-request-format-type-bug.patch

_______________________________________
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

Reply via email to