forked from OSchip/llvm-project
Python 2/3 compat: queue vs Queue
Differential Revision: https://reviews.llvm.org/D59590 llvm-svn: 356906
This commit is contained in:
parent
2dea7c4113
commit
b833c6af59
|
@ -18,7 +18,10 @@ import os
|
|||
import signal
|
||||
import sys
|
||||
|
||||
import Queue
|
||||
try:
|
||||
import queue
|
||||
except ImportError:
|
||||
import Queue as queue
|
||||
|
||||
import debuggerdriver
|
||||
import cui
|
||||
|
@ -126,7 +129,7 @@ def main(screen):
|
|||
signal.signal(signal.SIGINT, sigint_handler)
|
||||
|
||||
global event_queue
|
||||
event_queue = Queue.Queue()
|
||||
event_queue = queue.Queue()
|
||||
|
||||
global debugger
|
||||
debugger = lldb.SBDebugger.Create()
|
||||
|
|
|
@ -14,7 +14,10 @@ import os
|
|||
import signal
|
||||
import sys
|
||||
|
||||
import Queue
|
||||
try:
|
||||
import queue
|
||||
except ImportError:
|
||||
import Queue as queue
|
||||
|
||||
import cui
|
||||
|
||||
|
@ -62,7 +65,7 @@ class SandboxUI(cui.CursesUI):
|
|||
|
||||
def main(screen):
|
||||
global event_queue
|
||||
event_queue = Queue.Queue()
|
||||
event_queue = queue.Queue()
|
||||
|
||||
sandbox = SandboxUI(screen, event_queue)
|
||||
sandbox.eventLoop()
|
||||
|
|
Loading…
Reference in New Issue