[issue4972] let's equip ftplib.FTP with __enter__ and __exit__
Giampaolo Rodola'
report at bugs.python.org
Sun May 9 21:50:14 CEST 2010
Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
> Is the string returned by a real FTP server “331 username ok”? (My
> point is that I think it would be better to have different strings for
> cmd_noop and cmd_user.)
Whoops! No that should have been "200 noop ok".
I copied cmd_user code and forgot to modify the response string.
Thanks.
New patch in attachment (I changed the doc a little bit including the "with" example usage in ftplib.rst other than just in what's new).
----------
Added file: http://bugs.python.org/file17277/ftplib.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4972>
_______________________________________
More information about the Python-bugs-list
mailing list