Patchwork D5599: remotefilelog: import Queue on Python 2, and queue on Python 3

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 5:03 p.m.
Message ID <a802801183cec5f7f00f87f4770b8c13@localhost.localdomain>
Download mbox | patch
Permalink /patch/37816/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 5:03 p.m.
durin42 updated this revision to Diff 13277.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5599?vs=13259&id=13277

REVISION DETAIL
  https://phab.mercurial-scm.org/D5599

AFFECTED FILES
  hgext/remotefilelog/basestore.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: pulkit, mjpieters, mercurial-devel

Patch

diff --git a/hgext/remotefilelog/basestore.py b/hgext/remotefilelog/basestore.py
--- a/hgext/remotefilelog/basestore.py
+++ b/hgext/remotefilelog/basestore.py
@@ -305,8 +305,7 @@ 
         cachepath = self._path
 
         # prune cache
-        import Queue
-        queue = Queue.PriorityQueue()
+        queue = pycompat.queue.PriorityQueue()
         originalsize = 0
         size = 0
         count = 0