mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 18:44:51 -04:00
Replace Queue with six.moves.queue
and a six.range change which I missed the last time Signed-off-by: Adrian Tschira <nota@notafile.com>
This commit is contained in:
parent
154b44c249
commit
878995e660
2 changed files with 6 additions and 4 deletions
|
@ -17,7 +17,7 @@ from twisted.internet import threads, reactor
|
|||
|
||||
from synapse.util.logcontext import make_deferred_yieldable, preserve_fn
|
||||
|
||||
import Queue
|
||||
from six.moves import queue
|
||||
|
||||
|
||||
class BackgroundFileConsumer(object):
|
||||
|
@ -49,7 +49,7 @@ class BackgroundFileConsumer(object):
|
|||
|
||||
# Queue of slices of bytes to be written. When producer calls
|
||||
# unregister a final None is sent.
|
||||
self._bytes_queue = Queue.Queue()
|
||||
self._bytes_queue = queue.Queue()
|
||||
|
||||
# Deferred that is resolved when finished writing
|
||||
self._finished_deferred = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue