Skip to content

Commit

Permalink
import VisibleDeprecationWarning from _utils.exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Jul 10, 2018
1 parent 318b91a commit 9469f39
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nilearn/datasets/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@
import numpy as np
from scipy import ndimage
from sklearn.datasets.base import Bunch
try:
from numpy import VisibleDeprecationWarning
except ImportError:
class VisibleDeprecationWarning(UserWarning):
pass

from .utils import (_get_dataset_dir, _fetch_files,
_get_dataset_descr, _uncompress_file)

from .._utils import check_niimg, niimg
from .._utils.exceptions import VisibleDeprecationWarning
from ..image import new_img_like

_package_directory = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit 9469f39

Please sign in to comment.