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 thread import error #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rprinz08
Copy link

@rprinz08 rprinz08 commented Dec 9, 2022

On newer Python versions, thread module was renamed to threading and low level functions are available in _thread module. Thats why ordered_dict.py backport fails on newer Python versions (e.g. Python 3.10.x) trying to import thread.
This PR fixes this by trying to import _threads first, then falling back to other options ...

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.

1 participant