Patchwork D3266: pycompat: export a handle on concurrent.futures

login
register
mail settings
Submitter phabricator
Date April 13, 2018, 9:45 p.m.
Message ID <4e6f41c11bb6853f0fbdecafb9cc3099@localhost.localdomain>
Download mbox | patch
Permalink /patch/30904/
State Not Applicable
Headers show

Comments

phabricator - April 13, 2018, 9:45 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8da30ceae88f: pycompat: export a handle on concurrent.futures (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3266?vs=8032&id=8164

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

AFFECTED FILES
  mercurial/pycompat.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/pycompat.py b/mercurial/pycompat.py
--- a/mercurial/pycompat.py
+++ b/mercurial/pycompat.py
@@ -26,7 +26,10 @@ 
     import Queue as _queue
     import SocketServer as socketserver
     import xmlrpclib
+
+    from .thirdparty.concurrent import futures
 else:
+    import concurrent.futures as futures
     import http.cookiejar as cookielib
     import http.client as httplib
     import pickle