-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
type: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Milestone
Description
Description
#11589 assumes all OSes have \n
as the line seperator, that is incorrect for WIndows. Python already has os.linesep
which should be used instead.
I included the fix in #11029, which currently is part of the 23.0 milestone.
See #11399 (comment) for additional context.
Expected behavior
os.linesep
should be used so the password used by Pip won't end with \r
on Windows.
pip version
unreleased
Python version
all
OS
Windows
How to Reproduce
- Configure python to use a private repository and be sure to include a username in the url credential section
- install keyring somewhere and make sure keyring.exe can only be found via PATH lookup and not by importing it as a package
- make sure pip can find the password for the configured url and username combination only via keyring.exe on the PATH
- try to pip install something
- it will fail because Pip does not strip
\r
from the password
Output
Looking in indexes:
WARNING: 401 Error, Credentials not correct for
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Metadata
Metadata
Assignees
Labels
type: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior