summaryrefslogtreecommitdiffstats
path: root/Doc/library/netrc.rst
diff options
context:
space:
mode:
authorEmmanuel Arias <eamanu@yaerobi.com>2021-11-17 09:07:54 (GMT)
committerGitHub <noreply@github.com>2021-11-17 09:07:54 (GMT)
commit15409c720be0503131713e3d3abc1acd0da07378 (patch)
tree537fdc71b286093d8849dc0a7b685b5461016cad /Doc/library/netrc.rst
parentda20d7401de97b425897d3069f71f77b039eb16f (diff)
downloadcpython-15409c720be0503131713e3d3abc1acd0da07378.zip
cpython-15409c720be0503131713e3d3abc1acd0da07378.tar.gz
cpython-15409c720be0503131713e3d3abc1acd0da07378.tar.bz2
bpo-28806: Continue work: improve the netrc library (GH-26330)
Continue with the improvement of the library netrc Original work and report Xiang Zhang <angwerzx@126.com> * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Doc/library/netrc.rst')
-rw-r--r--Doc/library/netrc.rst11
1 files changed, 4 insertions, 7 deletions
diff --git a/Doc/library/netrc.rst b/Doc/library/netrc.rst
index 4bf7de6..88265d9 100644
--- a/Doc/library/netrc.rst
+++ b/Doc/library/netrc.rst
@@ -41,6 +41,10 @@ the Unix :program:`ftp` program and other FTP clients.
.. versionchanged:: 3.10
:class:`netrc` try UTF-8 encoding before using locale specific
encoding.
+ The entry in the netrc file no longer needs to contain all tokens. The missing
+ tokens' value default to an empty string. All the tokens and their values now
+ can contain arbitrary characters, like whitespace and non-ASCII characters.
+ If the login name is anonymous, it won't trigger the security check.
.. exception:: NetrcParseError
@@ -85,10 +89,3 @@ Instances of :class:`~netrc.netrc` have public instance variables:
.. attribute:: netrc.macros
Dictionary mapping macro names to string lists.
-
-.. note::
-
- Passwords are limited to a subset of the ASCII character set. All ASCII
- punctuation is allowed in passwords, however, note that whitespace and
- non-printable characters are not allowed in passwords. This is a limitation
- of the way the .netrc file is parsed and may be removed in the future.