summaryrefslogtreecommitdiff
path: root/python/helpers/pydev/pydevd_tracing.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/helpers/pydev/pydevd_tracing.py')
-rw-r--r--python/helpers/pydev/pydevd_tracing.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/helpers/pydev/pydevd_tracing.py b/python/helpers/pydev/pydevd_tracing.py
index 7bc1ba5c2c23..d362462013a9 100644
--- a/python/helpers/pydev/pydevd_tracing.py
+++ b/python/helpers/pydev/pydevd_tracing.py
@@ -1,4 +1,5 @@
from pydevd_constants import * #@UnusedWildImport
+from _pydev_imps import _pydev_thread
try:
import cStringIO as StringIO #may not always be available @UnusedImport
@@ -8,10 +9,6 @@ except:
except:
import io as StringIO
-if USE_LIB_COPY:
- import _pydev_threading as threading
-else:
- import threading
import sys #@Reimport
import traceback
@@ -21,7 +18,7 @@ class TracingFunctionHolder:
'''
_original_tracing = None
_warn = True
- _lock = threading.Lock()
+ _lock = _pydev_thread.allocate_lock()
_traceback_limit = 1
_warnings_shown = {}