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

more Python3 compat #4

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

Conversation

umlaeute
Copy link

  • dict.has_key(key) is gone: use key in dict
  • in Py3, dict.keys() returns a dict_keys object instead of a sortable list - so we need to convert it explicitely

i also added a few tests (basically turning the examples in the README and the negotiator.py into pytests).

- "dict.has_key(key)" is gone: use "key in dict"
- "dict.keys()" now returns a "dict_keys" object, instead of a
  sortable "list" - so convert it explicitely
@umlaeute
Copy link
Author

sidenote: only now i discovered another fork jpstroop#2 that does something similar.
no idea, why they didn't do a PR yet.

@snarfed
Copy link

snarfed commented Dec 26, 2022

@CottageLabs @richard-jones any chance of getting this PR merged? And maybe even a new version of PyPI? I'd love to be able to install use this library cleanly with Python 3!

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.

2 participants