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

fix validation script to sort alphabetically #83

Merged
merged 2 commits into from
Oct 5, 2019

Conversation

tasawernawaz
Copy link
Contributor

Fixes #82

FYI @benbarth

@benbarth
Copy link
Owner

benbarth commented Oct 5, 2019

Thanks @tasawernawaz! I think we should switch it to "key=str.casefold".

str.casefold()
Return a casefolded copy of the string. Casefolded strings may be used for caseless matching.

Casefolding is similar to lowercasing but more aggressive because it is intended to remove all case distinctions in a string. For example, the German lowercase letter 'ß' is equivalent to "ss". Since it is already lowercase, lower() would do nothing to 'ß'; casefold() converts it to "ss".

The casefolding algorithm is described in section 3.13 of the Unicode Standard.

New in version 3.3.

@benbarth benbarth merged commit 1e3f7be into benbarth:master Oct 5, 2019
@benbarth benbarth added the hacktoberfest Qualifies for Hacktoberfest label Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Qualifies for Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix validation script
2 participants