mercurial/pycompat.py
changeset 48835 a0da5075bca3
parent 48298 6ffcaba7d122
child 48869 57b58413dad1
equal deleted inserted replaced
48834:029b76d645dc 48835:a0da5075bca3
    33     import httplib
    33     import httplib
    34     import Queue as queue
    34     import Queue as queue
    35     import SocketServer as socketserver
    35     import SocketServer as socketserver
    36     import xmlrpclib
    36     import xmlrpclib
    37 
    37 
    38     from .thirdparty.concurrent import futures
       
    39 
       
    40     def future_set_exception_info(f, exc_info):
    38     def future_set_exception_info(f, exc_info):
    41         f.set_exception_info(*exc_info)
    39         f.set_exception_info(*exc_info)
    42 
    40 
    43     # this is close enough for our usage
    41     # this is close enough for our usage
    44     FileNotFoundError = OSError
    42     FileNotFoundError = OSError
    45 
    43 
    46 else:
    44 else:
    47     import builtins
    45     import builtins
    48     import concurrent.futures as futures
       
    49     import http.cookiejar as cookielib
    46     import http.cookiejar as cookielib
    50     import http.client as httplib
    47     import http.client as httplib
    51     import pickle
    48     import pickle
    52     import queue as queue
    49     import queue as queue
    53     import socketserver
    50     import socketserver