Georg Brandl
50ba6e1b50
#1726172 : dont raise an unexpected IndexError if a voidresp() call has an empty response.
2009-04-05 10:48:47 +00:00
Benjamin Peterson
dee0b175f6
backport r66656 so people using -Qnew aren't affected
2008-09-27 22:08:12 +00:00
Facundo Batista
4f1b1ed975
Fixed the semantic of timeout for socket.create_connection and
...
all the upper level libraries that use it, including urllib2.
Added and fixed some tests, and changed docs correspondingly.
Thanks to John J Lee for the patch and the pusing, :)
2008-05-29 16:39:26 +00:00
Gregory P. Smith
e6c03033af
socket.error inherits from IOError, it no longer needs listing in
...
the all_errors tuple.
2008-04-12 22:24:04 +00:00
Gregory P. Smith
2230bcfe24
docstring and comment updates suggested by Giampaolo Rodola'
2008-01-22 23:15:34 +00:00
Gregory P. Smith
c64386b595
accepts and closes issue #1221598 : adds an optional callback to ftplib.FTP
...
storbinary() and storlines() methods.
2008-01-22 00:19:41 +00:00
Facundo Batista
9249312020
FTP.ntransfercmd method now uses create_connection when passive,
...
using the timeout received in connection time.
2007-06-06 15:13:37 +00:00
Neal Norwitz
0d4c06e06e
Whitespace normalization. Ugh, we really need to do this more often.
...
You might want to review this change as it's my first time. Be gentle. :-)
2007-04-25 06:30:05 +00:00
Facundo Batista
93c33680a0
Added the posibility to pass the timeout to FTP.connect, not only when
...
instantiating the class. Docs and tests are updated.
2007-03-30 13:00:35 +00:00
Facundo Batista
3f10099289
Forgot to add the file before the previous commit, here go
...
the ftplib tests.
2007-03-26 20:56:09 +00:00
Tim Peters
f733abb783
Whitespace normalization.
2007-01-30 03:03:46 +00:00
Martin v. Löwis
36cbc08f3f
Patch #1359217 : Ignore 2xx response before 150 response.
...
Will backport to 2.5.
2006-11-12 18:48:13 +00:00
Raymond Hettinger
c88a6c75df
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.
2005-04-05 04:31:09 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Walter Dörwald
a401ae4010
Fix a regression from the 1.68->1.69 checkin:
...
string.split(foo, bar) must be foo.split(bar) instead of bar.split(foo).
2002-06-03 10:41:45 +00:00
Raymond Hettinger
54f0222547
SF 563203. Replaced 'has_key()' with 'in'.
2002-06-01 14:18:47 +00:00
Raymond Hettinger
094662a165
Replace boolean test with is None
2002-06-01 01:29:16 +00:00
Neal Norwitz
7ce734cd72
Use string methods where possible, and remove import string
2002-05-31 14:13:04 +00:00
Raymond Hettinger
e874fc304e
Closes SF patch 553277. Per GvR, reverting to original patch -- the way to
...
test if 'callable' has not been supplied is to test for None instead of
False. The previous correction to 'if callable()' was wrong because an unusable
callback would be ignored rather than raising an exception.
2002-05-12 05:53:51 +00:00
Martin v. Löwis
a8dd0941b8
Patch #553277 : Accept callbacks that are callable, not callbacks that are true.
2002-05-08 08:56:33 +00:00
Martin v. Löwis
b5255114d1
Access the exception argument to see whether it starts with '500'.
...
Fixes #527855 .
2002-03-10 15:59:58 +00:00
Martin v. Löwis
e12454f44a
The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715 .
...
Replaces calls to socket.send() (which isn't guaranteed to send all data)
with the new socket.sendall() method.
2002-02-16 23:06:19 +00:00
Tim Peters
e4418609f7
Whitespace normalization.
2002-02-16 07:34:19 +00:00
Guido van Rossum
24a643416d
Update the docstring too. :-)
2001-12-28 20:54:55 +00:00
Guido van Rossum
c33e077838
SF patch #497420 (Eduardo Pérez): ftplib: ftp anonymous password
...
Instead of sending the real user and host, use "anonymous@" (i.e. no
host name at all!) as the default anonymous FTP password. This avoids
privacy violations.
2001-12-28 20:54:28 +00:00