]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-114241: Fix and improve the ftplib CLI (GH-114242) (GH-114404)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 21 Jan 2024 20:48:12 +0000 (21:48 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Jan 2024 20:48:12 +0000 (20:48 +0000)
commit4c42d981542372f57bc0071481dee42dbf119927
tree43720bf72f8814f2af6b5719cb8c87c87e1dd3f7
parent5183a5dee525916d7dca9ab0b443067be257f86f
[3.12] gh-114241: Fix and improve the ftplib CLI (GH-114242) (GH-114404)

* Fix writing the retrieved binary file to stdout.
* Add a newline after writing warnings to stderr.
* Fix a TypeError if the netrc file doesn't contain a host/default entry.
* Improve the usage message.
(cherry picked from commit 42d72b23dd1ee0e100ee47aca64fc1e1bbe576c9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/ftplib.py