mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-04 13:00:57 +08:00
For filter submodule, explicitly set warning registry location
This commit is contained in:
1 parent
e03638a9d2
commit
2e90f4b15d
1 file changed
+8
-5
@@ -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