]> granicus.if.org Git - python/commit
SF bug #1168983: ftplib.py string index out of range
authorRaymond Hettinger <python@rcn.com>
Tue, 5 Apr 2005 04:31:09 +0000 (04:31 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 5 Apr 2005 04:31:09 +0000 (04:31 +0000)
commitc88a6c75df1e2dac818b63a36db6c8282f4541f7
treea499ddd7ac1404c37c21206da7f5e7ca7d7dc4ec
parent714f87821f0f5a84ca43ce640407c15f689fa47c
SF bug #1168983:  ftplib.py string index out of range

* resp[:1] in '123' # after Py2.2, this allowed blank responses to pass.
* replace <> with !=
* provide a usage message for empty command line calls

Backport candidate.
Lib/ftplib.py