pycompat: export a handle on concurrent.futures
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 09 Apr 2018 12:28:57 -0700
changeset 37628 8da30ceae88f
parent 37627 cfb32979abcd
child 37629 fa0382088993
pycompat: export a handle on concurrent.futures On Python 3, we use the built-in version in the standard library. Else we use our vendored backport. Differential Revision: https://phab.mercurial-scm.org/D3266
mercurial/pycompat.py
--- a/mercurial/pycompat.py	Mon Apr 09 12:27:52 2018 -0700
+++ b/mercurial/pycompat.py	Mon Apr 09 12:28:57 2018 -0700
@@ -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