Skip to content

Parse req cleanup #2497

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

Merged
merged 3 commits into from
Mar 16, 2015
Merged

Parse req cleanup #2497

merged 3 commits into from
Mar 16, 2015

Conversation

xavfernandez
Copy link
Member

No description provided.

- no need to check for startswith('#') since the regex removed all
  comments
- make sure the regex removes all spaces before the comment
- remove all long prefixes the same way
- only lstrip short options since the line has already been stripped
this isolates the line parsing bit
@msabramo
Copy link
Contributor

Didn't look super closely since I'm on a phone but the refactoring looks like a good idea.

dstufft added a commit that referenced this pull request Mar 16, 2015
@dstufft dstufft merged commit 444ee95 into pypa:develop Mar 16, 2015
@xavfernandez xavfernandez deleted the parse_req_cleanup branch March 26, 2015 21:15
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 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.

3 participants