On Monday, 25 March 2019 09:33:57 UTC-3, Tom Keffer wrote:
>
> 2. For a queue, do this:
>
> try:
>     # Python 2
>     from Queue import Queue
> except ImportError:
>     # Python 3
>     from queue import Queue
>
> Then use "Queue" throughout your code.
>
> Tom,

The above code doesn't work in python 3.
I've got error: Import of driver failed: type object 'Queue' has no 
attribute 'Queue' (<class 'AttributeError'>)

But...

I found the following code in restx.py:

# Python 2/3 compatiblity shims
import six
from six.moves import queue
...
                _record = self.queue.get()
...
                if self.queue.qsize() <= self.max_backlog:
...
            self.archive_queue = queue.Queue()
...
        self.loop_queue.put(

Should I use the syntax of restx.py in rtldavis.py?

Luc 

Reply via email to