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

Patch for sort method cmp->key #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mppowell
Copy link

Newer versions of Python 3 no longer support the cmp argument in the sort function. This patch uses the functools.cmp_to_key() method to convert the lambda function to a function compatible with the key argument instead. This unbreaks the code for newer versions of python (tested on Python 3.6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant