diff mercurial/localrepo.py @ 48926:a0da5075bca3

cleanup: directly use concurrent.futures instead of via pycompat Python 2 is gone. Differential Revision: https://phab.mercurial-scm.org/D12279
author Augie Fackler <augie@google.com>
date Wed, 02 Mar 2022 10:24:49 -0500
parents 6e559391f96e
children 6000f5b25c9b
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Mar 02 10:23:53 2022 -0500
+++ b/mercurial/localrepo.py	Wed Mar 02 10:24:49 2022 -0500
@@ -16,6 +16,7 @@
 import time
 import weakref
 
+from concurrent import futures
 from .i18n import _
 from .node import (
     bin,
@@ -278,7 +279,7 @@
         # method on the peer and return a resolved future.
         fn = getattr(self._peer, pycompat.sysstr(command))
 
-        f = pycompat.futures.Future()
+        f = futures.Future()
 
         try:
             result = fn(**pycompat.strkwargs(args))