Skip to content

Use current_thread instead of currentThread method that was deprecated in Python 3.10 #1465

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 18, 2021
Merged

Conversation

tirkarthi
Copy link
Contributor

Fixes #1464

@codecov
Copy link

codecov bot commented Apr 18, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@e9eebfb). Click here to learn what that means.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1465   +/-   ##
=======================================
  Coverage        ?   86.47%           
=======================================
  Files           ?       35           
  Lines           ?     1849           
  Branches        ?      258           
=======================================
  Hits            ?     1599           
  Misses          ?      178           
  Partials        ?       72           
Impacted Files Coverage Δ
debug_toolbar/panels/logging.py 95.91% <100.00%> (ø)
debug_toolbar/panels/staticfiles.py 95.53% <100.00%> (ø)
debug_toolbar/utils.py 76.15% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9eebfb...8f4bc86. Read the comment docs.

@matthiask
Copy link
Member

Thanks! The current_thread spelling was introduced in Python 2.6 a very long time ago, this is fine :)

@matthiask matthiask merged commit 4df0ae4 into django-commons:main Apr 18, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

currentThread was deprecated in Python 3.10 in favour of current_thread
2 participants