mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 17:21:18 +08:00
FIX: typo in local version of tifffile _replace_by
This commit is contained in:
+2
-2
@@ -153,7 +153,7 @@ import numpy
|
||||
|
||||
from . import _tifffile
|
||||
|
||||
__version__ = '0.3.3'
|
||||
__version__ = '0.3.4'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
__all__ = ('imsave', 'imread', 'imshow', 'TiffFile', 'TiffWriter',
|
||||
'TiffSequence')
|
||||
@@ -3114,7 +3114,7 @@ def _replace_by(module_function, package=None, warn=False):
|
||||
full_name = modname
|
||||
else:
|
||||
full_name = package + '.' + modname
|
||||
module = __import__(full_name, romlist=[modname])
|
||||
module = __import__(full_name, fromlist=[modname])
|
||||
func, oldfunc = getattr(module, function), func
|
||||
globals()['__old_' + func.__name__] = oldfunc
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user