Skip to content

Commit

Permalink
Closes #26; SafeFunction import in joblib-0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Humphrey committed Jul 28, 2016
1 parent 7f8b51b commit fafe7b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ develop-eggs
lib
lib64
__pycache__
.cache

# Installer logs
pip-log.txt
Expand Down
7 changes: 6 additions & 1 deletion pescador/zmq_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
except ImportError:
import json

from joblib.parallel import SafeFunction
try:
# joblib <= 0.9.4
from joblib.parallel import SafeFunction
except ImportError:
# joblib >= 0.10.0
from joblib._parallel_backends import SafeFunction

__all__ = ['zmq_stream']

Expand Down

0 comments on commit fafe7b5

Please sign in to comment.