-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix trailing commas on Requires-Python
in HTML indexes
#1507
Fix trailing commas on Requires-Python
in HTML indexes
#1507
Conversation
We tend to fix this via our |
9907868
to
10398d7
Compare
ah i see. how does this look? |
Ahh yes, this looks good. |
Requires-Python
in HTML indexes
Requires-Python
in HTML indexes Requires-Python
in HTML indexes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -137,7 +138,7 @@ impl SimpleHtml { | |||
{ | |||
let requires_python = std::str::from_utf8(requires_python.as_bytes())?; | |||
let requires_python = html_escape::decode_html_entities(requires_python); | |||
Some(LenientVersionSpecifiers::from_str(&requires_python).map(Into::into)) | |||
Some(LenientVersionSpecifiers::from_str(&requires_python).map(VersionSpecifiers::from)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how come from is preferable? (to help me learn)
illustration and suggested fix for #1464