Skip to content

Commit

Permalink
Rollup merge of rust-lang#57453 - cuviper:python3-thread, r=nikomatsakis
Browse files Browse the repository at this point in the history
lldb_batchmode.py: try `import _thread` for Python 3

None
  • Loading branch information
Centril authored Jan 13, 2019
2 parents 8e3980b + d9ddc39 commit 36c7cde
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/etc/lldb_batchmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@
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

Expand Down

0 comments on commit 36c7cde

Please sign in to comment.