Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add split_auth_from_netloc() to misc.py #5657

Merged
merged 1 commit into from Jul 27, 2018

Conversation

cjerdonek
Copy link
Member

This PR moves the implementation of Subversion.get_netloc_and_auth() to misc.py. A couple of benefits of this are--

  1. It lets us ensure that remove_auth_from_url() and Subversion.get_netloc_and_auth() both use the same logic for splitting the auth information from the netloc (in particular splitting along the rightmost "@"), and it lets us centralize the tests.

  2. This also sets up PR Redact password from various log messages #5590 to be implemented with less code duplication, since some of the needed logic is already implemented by Subversion.get_netloc_and_auth().

@cjerdonek cjerdonek force-pushed the misc-add-split-auth-from-url branch from fe7600d to 58b21d1 Compare July 25, 2018 17:36
@cjerdonek
Copy link
Member Author

Thanks a lot for reviewing.

@pradyunsg pradyunsg merged commit d77e329 into pypa:master Jul 27, 2018
@cjerdonek cjerdonek deleted the misc-add-split-auth-from-url branch July 27, 2018 04:53
@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants