fix imports
This commit is contained in:
parent
071f153564
commit
3ccb164f20
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue