We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
threading.currentThread has been deprecated in favour of threading.current_thread in Python 3.10 . current_thread is also available in Python 2.7
To Reproduce How can we reproduce the problem? Please be specific. Don't just link to a failing CI job. Answer the questions below:
coverage debug sys
pip freeze
rg -t py -w 'currentThread|notifyAll|activeCount|getName|setName|isDaemon|setDaemon' tests/test_concurrency.py 521: ident = threading.currentThread().ident coverage/pytracer.py 88: self.threading.currentThread().ident, 223: self.thread = self.threading.currentThread() 225: if self.thread.ident != self.threading.currentThread().ident: 246: if self.threading and self.thread.ident != self.threading.currentThread().ident:
Expected behavior
currentThread needs to be replaced with current_thread which is also available in Python 2.7
Additional context
CPython PR : python/cpython#25174
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
threading.currentThread has been deprecated in favour of threading.current_thread in Python 3.10 . current_thread is also available in Python 2.7
To Reproduce
How can we reproduce the problem? Please be specific. Don't just link to a failing CI job. Answer the questions below:
coverage debug sys
is helpful.pip freeze
is helpful.Expected behavior
currentThread needs to be replaced with current_thread which is also available in Python 2.7
Additional context
CPython PR : python/cpython#25174
The text was updated successfully, but these errors were encountered: