Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/thirdparty/concurrent/futures/process.py @ 37626:0a9c0d3480b2
futures: switch to absolute and relative imports
This makes the package conform with our importing policy,
silencing a number of warnings. It also makes the package usable
when it isn't named "concurrent.futures."
Differential Revision: https://phab.mercurial-scm.org/D3264
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 09 Apr 2018 12:23:48 -0700 |
parents | eb687c28a915 |
children |
comparison
equal
deleted
inserted
replaced
37625:3ccaf995f549 | 37626:0a9c0d3480b2 |
---|---|
41 Process #1..n: | 41 Process #1..n: |
42 - reads _CallItems from "Call Q", executes the calls, and puts the resulting | 42 - reads _CallItems from "Call Q", executes the calls, and puts the resulting |
43 _ResultItems in "Request Q" | 43 _ResultItems in "Request Q" |
44 """ | 44 """ |
45 | 45 |
46 from __future__ import absolute_import | |
47 | |
46 import atexit | 48 import atexit |
47 from concurrent.futures import _base | 49 from . import _base |
48 import Queue as queue | 50 import Queue as queue |
49 import multiprocessing | 51 import multiprocessing |
50 import threading | 52 import threading |
51 import weakref | 53 import weakref |
52 import sys | 54 import sys |