You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 15409c7 to close PR #26330 introduced a regression in the stdlib netrc.py that causes backslashes to be stripped out of tokens. As an example, the password extracted from the following .netrc file
machine my.host.com login user password mypass\word
will be mypassword instead of mypass\word. Same behavior would happen for login or account tokens.
Backslashes can be valid characters in password, they are not always
used to escape symbols.
Treat backslash characters as escape symbols only for quotes in quotes.
Bug report
Commit 15409c7 to close PR #26330 introduced a regression in the stdlib netrc.py that causes backslashes to be stripped out of tokens. As an example, the password extracted from the following .netrc file
will be
mypassword
instead ofmypass\word
. Same behavior would happen for login or account tokens.Your environment
The text was updated successfully, but these errors were encountered: