Skip to content

Commit

Permalink
Support Python 2 for ImportErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Aug 1, 2018
1 parent 712ba26 commit be1be64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions dask/array/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,4 @@
"Please either conda or pip install as follows:\n\n"
" conda install dask # either conda install\n"
" pip install dask[array] --upgrade # or pip install")
e.msg += "\n\n" + msg
raise e
raise ImportError(str(e) + '\n\n' + msg)
3 changes: 1 addition & 2 deletions dask/bag/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
"Please either conda or pip install as follows:\n\n"
" conda install dask # either conda install\n"
" pip install dask[bag] --upgrade # or pip install")
e.msg += "\n\n" + msg
raise e
raise ImportError(str(e) + '\n\n' + msg)
3 changes: 1 addition & 2 deletions dask/dataframe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@
"Please either conda or pip install as follows:\n\n"
" conda install dask # either conda install\n"
" pip install dask[dataframe] --upgrade # or pip install")
e.msg += "\n\n" + msg
raise e
raise ImportError(str(e) + '\n\n' + msg)

0 comments on commit be1be64

Please sign in to comment.