changeset 41266:92cf293fd93d

remotefilelog: import Queue on Python 2, and queue on Python 3 Differential Revision: https://phab.mercurial-scm.org/D5599
author Augie Fackler <augie@google.com>
date Wed, 16 Jan 2019 10:56:39 -0500
parents 433c736f6f1c
children e30eef62e743
files hgext/remotefilelog/basestore.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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