Skip to content

Conversation

@cjerdonek
Copy link
Member

This moves LinkCollector from index.py to a new module called collector.py. This reduces the size of index.py from 1496 lines to 1006 lines. It also further decouples the "link evaluation" code from the network / link-collecting stage. In particular, I believe this now makes index.py "sans I/O." Even more can be done to separate the network / IO code from the rest of collector.py (e.g. the HTML parsing code).

While this PR has many lines, it's just moving functions and classes (and the corresponding test methods) with no code changes, aside from things like updating import statements.

@cjerdonek cjerdonek added C: finder PackageFinder and index related code skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code labels Sep 14, 2019
@cjerdonek cjerdonek force-pushed the add-collector-module branch 3 times, most recently from b836fc8 to 10de3ab Compare September 14, 2019 09:43
@cjerdonek cjerdonek merged commit 83bb1d0 into pypa:master Sep 14, 2019
@cjerdonek cjerdonek deleted the add-collector-module branch September 14, 2019 17:04
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Oct 14, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 14, 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