changeset 37628:8da30ceae88f

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 09 Apr 2018 12:28:57 -0700
parents cfb32979abcd
children fa0382088993
files mercurial/pycompat.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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