Skip to content

Commit

Permalink
Use current_thread() to address Python 3.10 DeprecationWarning
Browse files Browse the repository at this point in the history
PR #370
  • Loading branch information
soham4abc authored May 18, 2021
1 parent 670a5c2 commit b067866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheroot/workers/threadpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _clear_threads(self):
return (
thread
for thread in threads
if thread is not threading.currentThread()
if thread is not threading.current_thread()
)

@property
Expand Down

0 comments on commit b067866

Please sign in to comment.