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

bpo-39279: Don't allow non-Ascii digits in platform.py #17928

Open
wants to merge 1 commit into
base: master
from

Conversation

@cool-RR
Copy link
Contributor

cool-RR commented Jan 9, 2020

The platform.py module takes non-Ascii digits in regexes in places it shouldn't. e.g. digits like ٢ and 5 and accepted, when only the Ascii digits between 0-9 should be accepted.

https://bugs.python.org/issue39279

@cool-RR cool-RR marked this pull request as ready for review Jan 9, 2020
@cool-RR

This comment has been minimized.

Copy link
Contributor Author

cool-RR commented Jan 9, 2020

@ezio-melotti @bitdancer This touches code that you were the last to touch, a few years ago. Care to comment?

Copy link
Member

ezio-melotti left a comment

If the change is approved, I think it would be better to add a few tests to make sure that the code still works (if they are not there already) and that it rejects non-ASCII digits properly.

@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Jan 10, 2020

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.