]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-114241: Fix and improve the ftplib CLI (GH-114242) (GH-114405)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 21 Jan 2024 20:31:12 +0000 (21:31 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Jan 2024 20:31:12 +0000 (22:31 +0200)
commit58c93d86b7486d3acb3e4cc60dc71a05f08226bd
tree11a9953e7d8f3f46257c9956fb9dcea063022187
parent9f164ab70b0166be3ca763adc1948a86b37f94b3
[3.11] gh-114241: Fix and improve the ftplib CLI (GH-114242) (GH-114405)

* 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