summaryrefslogtreecommitdiff
path: root/concurrent
diff options
context:
space:
mode:
authorAlex Gr?nholm <alex.gronholm@nextday.fi>2013-11-12 20:32:46 +0200
committerAlex Gr?nholm <alex.gronholm@nextday.fi>2013-11-12 20:32:46 +0200
commitece5f3a325891bdbc664e3130c4758a20683c0ea (patch)
tree2f744999eaad9b1f6fd111339359143089b46180 /concurrent
parent4690bf5e2a98a8cbe38055d34a91ed4a5da4220d (diff)
downloadfutures-ece5f3a325891bdbc664e3130c4758a20683c0ea.tar.gz
Fixed Jython compatibility by making the ProcessPoolExecutor import optional2.1.5
Added metadata for wheel support
Diffstat (limited to 'concurrent')
-rw-r--r--concurrent/futures/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/concurrent/futures/__init__.py b/concurrent/futures/__init__.py
index b5231f8..fef5281 100644
--- a/concurrent/futures/__init__.py
+++ b/concurrent/futures/__init__.py
@@ -14,5 +14,10 @@ from concurrent.futures._base import (FIRST_COMPLETED,
Executor,
wait,
as_completed)
-from concurrent.futures.process import ProcessPoolExecutor
from concurrent.futures.thread import ThreadPoolExecutor
+
+# Jython doesn't have multiprocessing
+try:
+ from concurrent.futures.process import ProcessPoolExecutor
+except ImportError:
+ pass