mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
For filter submodule, explicitly set warning registry location
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
from skimage._shared.utils import skimage_deprecation
|
||||
from warnings import warn
|
||||
warn(skimage_deprecation('The `skimage.filter` module has been renamed to '
|
||||
'`skimage.filters`. This placeholder module '
|
||||
'will be removed in v0.13.'))
|
||||
del warn
|
||||
from warnings import warn_explicit
|
||||
__warningregistry__ = {}
|
||||
warn_explicit(skimage_deprecation('The `skimage.filter` module has been renamed to '
|
||||
'`skimage.filters`. This placeholder module '
|
||||
'will be removed in v0.13.'), category=None,
|
||||
filename=__file__, lineno=4,
|
||||
registry=__warningregistry__)
|
||||
del warn_explicit
|
||||
del skimage_deprecation
|
||||
|
||||
from ..filters import *
|
||||
|
||||
Reference in New Issue
Block a user