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

Correctly trims values during wheel WHEEL file parsing #7770

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

Coruscant11
Copy link
Contributor

Summary

My last changes (#6616) used by mistake == instead of !=. 😥 Making values currently never trimmed despite what we wanted.
Values should now be trimmed if needed.

Also removes the trim of the header name, because if a header contains spaces, the header will be skipped by the mailparse crate in the first place.

Test Plan

  • A unit test has been added to validate that we correctly trim values.
  • A unit test has been added to validate the header names containing spaces are skipped.

@Coruscant11 Coruscant11 changed the title Trims correctly values during wheel WHEEL file parsing Correctly trims values during wheel WHEEL file parsing Sep 28, 2024
Last changes used by mistake == instead of !=.
A unit test has been added to validate that we correctly trim values.

Also removes the trim of the header name, because if a header contains
spaces, the header will be skipped by the mailparse crate in the first
place.
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, my bad too! Thanks for following up.

@charliermarsh charliermarsh merged commit ada6b36 into astral-sh:main Sep 29, 2024
61 checks passed
@charliermarsh charliermarsh added the bug Something isn't working label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants