summaryrefslogtreecommitdiffstats
path: root/Lib/ftplib.py
Commit message (Collapse)AuthorAgeFilesLines
* Enforce PEP 257 conventions in ftplib.py (GH-15604)Alan Yee2019-09-031-8/+5
| | | | | -`"""` over `'''` -no blank line either before or after the docstring. -place the closing quotes on a line by themselves
* bpo-37390: Add audit event table to documentations (GH-14406)Steve Dower2019-06-271-2/+2
| | | Also updates some (unreleased) event names to be consistent with the others.
* bpo-37363: Add audit events for a range of modules (GH-14301)Steve Dower2019-06-241-0/+2
|
* bpo-35934: Add socket.create_server() utility function (GH-11784)Giampaolo Rodola2019-04-081-20/+1
|
* bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268)Pablo Aguiar2018-11-011-1/+1
|
* bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)Christian Heimes2017-09-151-2/+2
| | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command ↵Dong-hee Na2017-07-221-0/+2
| | | | (#1214)
* Issue #28022: Deprecate ssl-related arguments in favor of SSLContext.Christian Heimes2016-09-101-0/+4
| | | | | | | The deprecation include manual creation of SSLSocket and certfile/keyfile (or similar) in ftplib, httplib, imaplib, smtplib, poplib and urllib. ssl.wrap_socket() is not marked as deprecated yet.
* #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-1/+1
| | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* Removed unused imports.Serhiy Storchaka2016-04-241-2/+0
|
* Issue #23883: Add missing APIs to __all__; patch by Jacek KołodziejMartin Panter2015-11-141-1/+2
|
* Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-2/+2
|\
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-2/+2
| | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-5/+10
|\ \ | |/ | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
| * Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-5/+10
| | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* | merge 3.4 (#23111)Benjamin Peterson2014-12-301-2/+2
|\ \ | |/
| * make PROTOCOL_SSLv23 the default protocol version for ftplib (closes #23111)Benjamin Peterson2014-12-301-2/+2
| |
* | merge 3.4 (#22921)Benjamin Peterson2014-11-231-4/+2
|\ \ | |/
| * don't require OpenSSL SNI to pass hostname to ssl functions (#22921)Benjamin Peterson2014-11-231-4/+2
| | | | | | | | Patch by Donald Stufft.
* | Issue #6623: Remove deprecated Netrc class in the ftplib module.Berker Peksag2014-11-011-112/+5
|/ | | | Patch by Matt Chaput.
* Issue #20978: pyflakes: fix undefined namesVictor Stinner2014-03-201-1/+0
|
* Issue #19781: ftplib now supports SSLContext.check_hostname and server nameChristian Heimes2013-12-021-2/+6
| | | | indication for TLS/SSL connections.
* Issue #19735: Implement private function ssl._create_stdlib_context() toChristian Heimes2013-11-231-11/+6
| | | | | create SSLContext objects in Python's stdlib module. It provides a single configuration point and makes use of SSLContext.load_default_certs().
* Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read bySerhiy Storchaka2013-10-201-3/+12
|\ | | | | | | | | limiting the call to readline(). Original patch by Michał Jastrzębski and Giampaolo Rodola.
| * Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read bySerhiy Storchaka2013-10-201-5/+18
| | | | | | | | | | limiting the call to readline(). Original patch by Michał Jastrzębski and Giampaolo Rodola.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | | | | | ModuleNotFoundError.
* | ftplib: update connect() docstring by mentioning 'timeout' argumentGiampaolo Rodola'2013-04-261-0/+1
| |
* | (issue 17452 / ftplib) fix TypeError occurring in case ssl module is not ↵Giampaolo Rodola'2013-03-181-4/+4
| | | | | | | | installed
* | Merge 3.3, issue #17047: remove doubled words found in 2.7 toTerry Jan Reedy2013-03-111-2/+2
|\ \ | |/ | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
| * Merge 3.2, issue #17047: remove doubled words found in 2.7 toTerry Jan Reedy2013-03-111-2/+2
| |\ | | | | | | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
| | * Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,Terry Jan Reedy2013-03-111-2/+2
| | | | | | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
* | | Refactor ftplib by getting rid of 4 methods (retr*() and stor*()) which were ↵Giampaolo Rodola'2013-03-071-71/+15
| | | | | | | | | | | | duplicated in TLS_FTP class.
* | | PEP8-ify ftplib.py: get rid of multiple statements on one line (if cond: ...)Giampaolo Rodola'2013-03-071-29/+57
| | |
* | | #6623: Add explicit deprecation warning for ftplib.Netrc.R David Murray2013-02-191-0/+3
| | |
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-4/+4
| | |
* | | Issue #16717: get rid of socket.error, replace with OSErrorAndrew Svetlov2012-12-181-4/+4
|/ /
* | Issue 16646 (ftplib): deliberately use intermediate variable after catching ↵Giampaolo Rodola'2012-12-171-1/+2
|\ \ | |/ | | | | exception
| * Issue 16646 (ftplib): deliberately use intermediate variable after catching ↵Giampaolo Rodola'2012-12-171-1/+2
| | | | | | | | exception
* | Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. ↵Giampaolo Rodola'2012-12-171-3/+7
|\ \ | |/ | | | | (patch by Serhiy Storchaka)
| * Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. ↵Giampaolo Rodola'2012-12-171-3/+7
| | | | | | | | (patch by Serhiy Storchaka)
* | fix #13563: make use of with statement in ftplib.py where neededGiampaolo Rodola'2011-12-101-20/+5
| |
* | Cleanup code: remove int/long idioms and simplify a while statement.Florent Xicluna2011-10-231-13/+4
| |
* | Merge: #10883: Fix socket leaks in urllib.request.Nadeem Vawda2011-07-231-25/+31
|\ \ | |/ | | | | | | | | | | | | * ftpwrapper now uses reference counting to ensure that the underlying socket is closed when the ftpwrapper object is no longer in use * ftplib.FTP.ntransfercmd() now closes the socket if an error occurs Initial patch by Victor Stinner.
| * Issue #10883: Fix socket leaks in urllib.request.Nadeem Vawda2011-07-231-25/+31
| | | | | | | | | | | | | | | | * ftpwrapper now uses reference counting to ensure that the underlying socket is closed when the ftpwrapper object is no longer in use * ftplib.FTP.ntransfercmd() now closes the socket if an error occurs Initial patch by Victor Stinner.
* | Issue 12139: add CCC command support to FTP_TLS class to revert the SSL ↵Giampaolo Rodola'2011-06-271-0/+8
| | | | | | | | connection back to clear-text.
* | merge with 3.2Giampaolo Rodola'2011-05-071-1/+11
|\ \ | |/
| * merge with 3.1Giampaolo Rodola'2011-05-071-1/+11
| |\
| | * #12002 - ftplib's abort() method raises TypeErrorGiampaolo Rodola'2011-05-071-1/+2
| | |
* | | Issue #11072: added MLSD command (RFC-3659) support to ftplib.Giampaolo Rodola'2011-05-061-1/+29
| | |