fix imports

This commit is contained in:
Steffen Vogel 2019-04-25 23:50:09 +02:00
parent 071f153564
commit 3ccb164f20

View file

@ -5,6 +5,7 @@ import traceback
import logging import logging
import asyncore import asyncore
import sys import sys
import queue
import Spectrum2 import Spectrum2
from yowsup.common import YowConstants from yowsup.common import YowConstants
@ -76,7 +77,7 @@ def main():
try: try:
callback = YowStack._YowStack__detachedQueue.get(False) #doesn't block callback = YowStack._YowStack__detachedQueue.get(False) #doesn't block
callback() callback()
except Queue.Empty: except queue.Empty:
pass pass
else: else:
break break
@ -84,8 +85,8 @@ def main():
break break
while True: while True:
try: try:
callback = transWhat.threadutils.eventQueue.get_nowait() callback = threadutils.eventQueue.get_nowait()
except Queue.Empty: except queue.Empty:
break break
else: else:
callback() callback()