lldb_batchmode.py: try import _thread for Python 3

This commit is contained in:
Josh Stone 2019-01-08 13:19:50 -08:00
parent 2cb7cdcb36
commit d9ddc39052

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