changeset 42784:777a9df5a1ef

perf: don't try to call `util.queue` on Mercurial version before it existed Differential Revision: https://phab.mercurial-scm.org/D6744
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 19 Aug 2019 10:39:13 -0700
parents c8d3af9c7e65
children c00005975c91
files contrib/perf.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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