Python 2/3 compat: queue vs Queue

Differential Revision: https://reviews.llvm.org/D59590

llvm-svn: 356906
This commit is contained in:
Serge Guelton 2019-03-25 15:14:56 +00:00
parent 2dea7c4113
commit b833c6af59
2 changed files with 10 additions and 4 deletions

View File

@ -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()

View File

@ -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()