1
Fork 0

Rollup merge of #57453 - cuviper:python3-thread, r=nikomatsakis

lldb_batchmode.py: try `import _thread` for Python 3

None
This commit is contained in:
Mazdak Farrokhzad 2019-01-13 05:26:48 +01:00 committed by GitHub
commit 36c7cde9e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,10 +18,15 @@ import lldb
import os
import sys
import threading
import thread
import re
import time
try:
import thread
except ModuleNotFoundError:
# The `thread` module was renamed to `_thread` in Python 3.
import _thread as thread
# Set this to True for additional output
DEBUG_OUTPUT = False