diff --git a/python/helpers/pydev/pydevd.py b/python/helpers/pydev/pydevd.py index dd1eb3d125c4..5a29e3327266 100644 --- a/python/helpers/pydev/pydevd.py +++ b/python/helpers/pydev/pydevd.py @@ -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)