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

Move some PackageFinder methods (preparation for PR #6910) #6913

Merged
merged 3 commits into from
Aug 24, 2019

Conversation

cjerdonek
Copy link
Member

This is a preliminary refactoring PR for PR #6910. It is to make that PR smaller and easier to review.

The current PR does the following three things:

  1. Move four PackageFinder methods with no change to the code.
  2. Change PackageFinder. _sort_locations() from a static method to a group_locations() function (no code change, but with an improved docstring).
  3. Simplify some unit tests in test_finder.py with a make_no_network_finder() helper function.

@cjerdonek cjerdonek added type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) C: finder PackageFinder and index related code labels Aug 23, 2019
This moves the methods to before the method where they are called.
@cjerdonek cjerdonek merged commit 2985efe into pypa:master Aug 24, 2019
@cjerdonek cjerdonek deleted the link-collector-1 branch August 24, 2019 02:42
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Sep 23, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 23, 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 C: finder PackageFinder and index related code skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants