remotefilelog: import Queue on Python 2, and queue on Python 3
authorAugie Fackler <augie@google.com>
Wed, 16 Jan 2019 10:56:39 -0500
changeset 41266 92cf293fd93d
parent 41265 433c736f6f1c
child 41267 e30eef62e743
remotefilelog: import Queue on Python 2, and queue on Python 3 Differential Revision: https://phab.mercurial-scm.org/D5599
hgext/remotefilelog/basestore.py
--- a/hgext/remotefilelog/basestore.py	Wed Jan 16 11:57:20 2019 -0500
+++ b/hgext/remotefilelog/basestore.py	Wed Jan 16 10:56:39 2019 -0500
@@ -305,8 +305,7 @@
         cachepath = self._path
 
         # prune cache
-        import Queue
-        queue = Queue.PriorityQueue()
+        queue = pycompat.queue.PriorityQueue()
         originalsize = 0
         size = 0
         count = 0