perf: don't try to call `util.queue` on Mercurial version before it existed
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 19 Aug 2019 10:39:13 -0700
changeset 42800 777a9df5a1ef
parent 42799 c8d3af9c7e65
child 42801 c00005975c91
perf: don't try to call `util.queue` on Mercurial version before it existed Differential Revision: https://phab.mercurial-scm.org/D6744
contrib/perf.py
--- a/contrib/perf.py	Mon Aug 19 10:38:38 2019 -0700
+++ b/contrib/perf.py	Mon Aug 19 10:39:13 2019 -0700
@@ -149,7 +149,7 @@
     try:
         queue = pycompat.queue
     except (NameError, AttributeError, ImportError):
-        queue = util.queue
+        import Queue as queue
 
 try:
     from mercurial import logcmdutil