PY-49453 DeprecationWarning: currentThread() is deprecated

GitOrigin-RevId: 896a4a150ba61936f0fdee93c6bd4fefa93ad2ac
This commit is contained in:
Egor Eliseev
2021-11-09 15:15:53 +03:00
committed by intellij-monorepo-bot
parent 15fcf230d5
commit 2a9d5417f0

View File

@@ -1841,7 +1841,7 @@ class DispatchReader(ReaderThread):
@overrides(ReaderThread._on_run)
def _on_run(self):
dummy_thread = threading.currentThread()
dummy_thread = threading.current_thread()
dummy_thread.is_pydev_daemon_thread = False
return ReaderThread._on_run(self)