Skip to content

Python 3: use threading instead of thread. - #9713

Merged
michaelDCurran merged 1 commit into
threshold_py3_stagingfrom
py3_noThreadModule
Jun 11, 2019
Merged

Python 3: use threading instead of thread. #9713
michaelDCurran merged 1 commit into
threshold_py3_stagingfrom
py3_noThreadModule

Conversation

@michaelDCurran

Copy link
Copy Markdown
Member

Link to issue number:

None.

Summary of the issue:

In Python3, the thread module is no longer available. The threading module should be used instead.

Description of how this pull request fixes the issue:

Replace use of the thread module with threading. We only used thread.get_ident, which also exists in threading.

Testing performed:

tbd.

Known issues with pull request:

None.

Change log entry:

None.

Section: New features, Changes, Bug fixes

@LeonarddeR LeonarddeR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is likely to become a gotcha for add-on authors that use the thread module.

@michaelDCurran
michaelDCurran merged commit 1ab7d82 into threshold_py3_staging Jun 11, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Jun 11, 2019
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.

4 participants