Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Oops. Catching OverflowError from int() doesn't help, since it raises | Guido van Rossum | 2001-10-17 | 1 | -2/+2 |
| | | | | ValueError on too-large inputs. | ||||
* | Fix SF bug #459767: ftplib fails with files > 2GB | Guido van Rossum | 2001-10-16 | 1 | -5/+13 |
| | | | | | size(), parse150(): try int() first, catch OverflowError, fall back to long(). | ||||
* | Only close sockets if they have been created. Reported by Blake Winton. | Martin v. Löwis | 2001-10-07 | 1 | -2/+5 |
| | |||||
* | Change the 227 response parser to use a more liberal regular | Guido van Rossum | 2001-08-17 | 1 | -7/+9 |
| | | | | | | | | expression. This is needed for certain servers that (in violation of the standard) don't return the parentheses in the response. This fixes SF bug #441712 by Henrik Weber (not exactly using his patch). | ||||
* | Initialize msg to avoid unbound locals. | Martin v. Löwis | 2001-07-31 | 1 | -0/+2 |
| | |||||
* | Untabify IPv6 changes. | Martin v. Löwis | 2001-07-26 | 1 | -66/+66 |
| | |||||
* | Patch #401196: Use getaddrinfo and AF_INET6 in TCP servers and clients. | Martin v. Löwis | 2001-07-24 | 1 | -22/+90 |
| | |||||
* | remove global decl about unused variable | Jeremy Hylton | 2001-04-09 | 1 | -1/+0 |
| | |||||
* | Move some constant initialization from FTP.__init__() and FTP.connect() | Fred Drake | 2001-02-28 | 1 | -16/+16 |
| | | | | | | | | to the class namespace. Allow FTP.close() to be called more than once without tossing cookies. (This seems to be a fairly common idiom for .close() methods, so let's try to be consistent.) | ||||
* | Provide a default for the blocksize arg of storbinary(). | Guido van Rossum | 2001-02-15 | 1 | -1/+1 |
| | | | | SF patch #103517 by mfx. | ||||
* | String method conversion. | Eric S. Raymond | 2001-02-09 | 1 | -13/+13 |
| | |||||
* | more __all__ updates | Skip Montanaro | 2001-01-20 | 1 | -0/+1 |
| | |||||
* | Default to passive mode. See SF bug #126851. | Guido van Rossum | 2001-01-15 | 1 | -1/+1 |
| | | | | | | This is slightly controversial, but after reading the argumentation in the bug tracker for and against, I believe this is the right solution. Let me know if it breaks for you, and how. | ||||
* | Whitespace normalization. | Tim Peters | 2001-01-14 | 1 | -635/+635 |
| | |||||
* | Update the code to better reflect recommended style: | Fred Drake | 2000-12-12 | 1 | -12/+12 |
| | | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects. | ||||
* | Added support for RFC 959's REST command (restart), closing SF patch | Barry Warsaw | 2000-09-01 | 1 | -23/+38 |
| | | | | | | | | | | | | | | | | | | | | #101187, which some modifications. Specifically, ntransfercmd(), transfercmd(), and retrbinary() all grow an optional `rest' argument, which if not None, is used as the argument to an FTP REST comman dbefore the socket is returned. Differences from the SF patch: - always compare against None with `is' or `is not' instead of == or != - no parens around conditional - RFC 959 defines the argument to REST is a string containing any ASCII characters in the range [33..126]. Therefore, we use the %s format character instead of %f or %d as suggested in the patch's comments. Note that we do /not/ sanity checkthe contents of the rest argument (but we'll document this in the library reference manual). | ||||
* | Convert some old-style string exceptions to class exceptions. | Fred Drake | 2000-08-17 | 1 | -6/+6 |
| | |||||
* | updated occurences of fqdn algorithm (closes patch #101197) | Peter Schneider-Kamp | 2000-08-16 | 1 | -12/+4 |
| | |||||
* | Fredrik Lundh: | Guido van Rossum | 2000-03-28 | 1 | -2/+2 |
| | | | | | This fixes a bunch of socket.connect(host, post) calls. Note that I haven't tested all modules -- I don't have enough servers here... | ||||
* | Simple changes by Gerrit Holl - move author acknowledgements out of | Guido van Rossum | 2000-02-28 | 1 | -5/+5 |
| | | | | docstrings into comments. | ||||
* | Actually, the previous batch's comment should have been different; | Guido van Rossum | 2000-02-04 | 1 | -2/+3 |
| | | | | | | | | | | *this* set of patches is Ka-Ping's final sweep: The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac. | ||||
* | Patches by Michael Reilly to correctly deal with ftp URLs of the form | Guido van Rossum | 1999-08-18 | 1 | -0/+2 |
| | | | | | ftp://user@host//root/path: the double slash in the pathname means to go to the root directory even if the initial directory isn't the root. | ||||
* | FTP.dir(): Fix typo in docstring. | Fred Drake | 1999-07-07 | 1 | -1/+1 |
| | |||||
* | Add warning to Netrc's docstring that it is obsolete -- use the netrc | Guido van Rossum | 1998-12-22 | 1 | -0/+2 |
| | | | | | module instead. (The main advantage of the latter is that it comes with documentation.) | ||||
* | Typo discovered by Just. | Guido van Rossum | 1998-12-21 | 1 | -1/+1 |
| | |||||
* | According to Robin Dunn, at least one FTP server returns 200 instead | Guido van Rossum | 1998-07-02 | 1 | -1/+1 |
| | | | | of 250 on a successful delete. | ||||
* | parse150(): Simplify RE used to parse the message a little, taking advantage | Fred Drake | 1998-04-27 | 1 | -2/+1 |
| | | | | of using re instead of regex. | ||||
* | A few lines were indented using spaces instead of tabs -- fix them. | Guido van Rossum | 1998-03-26 | 1 | -132/+137 |
| | |||||
* | Add rmd() (remove directory command); fix comment in parse257. | Guido van Rossum | 1998-02-19 | 1 | -2/+8 |
| | | | | | In login(), force passwd and acct to '' when they are None (this can happen in the test program!). | ||||
* | Provide default for blocksize on retrbinary (Skip Montanaro). | Guido van Rossum | 1997-12-03 | 1 | -1/+1 |
| | |||||
* | Use re instead of regex. Also remove bogus return statement from __init__(). | Guido van Rossum | 1997-10-22 | 1 | -6/+8 |
| | |||||
* | Return the error code from most commands, rather than swallowing it. | Guido van Rossum | 1997-10-07 | 1 | -16/+25 |
| | | | | | Adapted the example (lying slightly about the string printed by login()). | ||||
* | Wrapped up the ~/.netrc support. This is basically just the changes Guido & | Fred Drake | 1997-06-24 | 1 | -6/+27 |
| | | | | I discussed to the original version way-back-when. | ||||
* | Added Fred Drake's netrc parser class. | Guido van Rossum | 1997-03-14 | 1 | -0/+100 |
| | |||||
* | (ftplib.py): Added parse150() function and FTP.ntransfercmd(). This allows | Fred Drake | 1997-01-10 | 1 | -3/+30 |
| | | | | access to the expected size of a transfer when available. | ||||
* | Always open file objects in binary mode. | Guido van Rossum | 1996-09-30 | 1 | -2/+2 |
| | |||||
* | Docstringified and PASV support by Siebren (including new ftpcp() function). | Guido van Rossum | 1996-05-28 | 1 | -91/+171 |
| | |||||
* | Changed makefile() args from r/w to rb/wb, for non-unix compatability. | Jack Jansen | 1996-02-14 | 1 | -2/+2 |
| | |||||
* | add acct() method to send new account name | Guido van Rossum | 1996-01-25 | 1 | -0/+5 |
| | |||||
* | add delete() method to ftp object | Guido van Rossum | 1995-10-11 | 1 | -0/+10 |
| | |||||
* | actualized example, catch EOFError, print retrieved lines if debugging>2 | Guido van Rossum | 1995-09-30 | 1 | -8/+15 |
| | |||||
* | new sendport() interface; add test() program call | Guido van Rossum | 1995-08-04 | 1 | -6/+9 |
| | |||||
* | add bind(0,''); better way of guessing our fully qualified hostname | Guido van Rossum | 1995-06-20 | 1 | -1/+8 |
| | |||||
* | don't show print passwords in debug output | Guido van Rossum | 1995-05-05 | 1 | -6/+16 |
| | |||||
* | For anonymous ftp, make sure local hostname is fully qualified. | Jack Jansen | 1995-05-04 | 1 | -0/+4 |
| | |||||
* | Always use 'anonymous' if os.environ doesn't exist | Jack Jansen | 1995-01-19 | 1 | -5/+10 |
| | |||||
* | Merge alpha100 branch back to main trunk | Guido van Rossum | 1994-08-01 | 1 | -75/+38 |
| | |||||
* | * Mass change: get rid of all init() methods, in favor of __init__() | Guido van Rossum | 1993-12-17 | 1 | -6/+1 |
| | | | | | | | constructors. There is no backward compatibility. Not everything has been tested. * aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as comments) | ||||
* | * wdbframewin.py (re_eval): set __privileged__ in globals so private | Guido van Rossum | 1993-12-14 | 1 | -1/+1 |
| | | | | | | | variables can still be seen by the debugger * ftplib.py (retrlines): args should be *args. * ChangeLog: entries for Sjoerd's addition sunau.py and changes to aiff.py * test_md5.py: test program for built-in md5 module | ||||
* | * test_*.py: new lambda syntax (also affects tests for filter, map, | Guido van Rossum | 1993-11-30 | 1 | -12/+42 |
| | | | | | | | | | | reduce) * ftplib.py: added default callback for retrlines; added dir() method * ftplib.py: don't return self in self.connect(); added hack so that if 'CDUP' is not understood, 'CWD ..' is tried. * ftplib.py: second method called init() should have been called connect(); if __init__ sees more than one argument, it will also try to login(). |