mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
Merge pull request #1549 from JDWarner/fix_tiffile_c_replacement
FIX: Correct typo in local version of tifffile _replace_by
This commit is contained in:
+2
-5
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# tifffile.py
|
||||
@@ -153,7 +151,7 @@ import numpy
|
||||
|
||||
from . import _tifffile
|
||||
|
||||
__version__ = '0.3.3'
|
||||
__version__ = '0.4.1'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
__all__ = ('imsave', 'imread', 'imshow', 'TiffFile', 'TiffWriter',
|
||||
'TiffSequence')
|
||||
@@ -3114,7 +3112,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:
|
||||
@@ -4858,4 +4856,3 @@ if sys.version_info[0] > 2:
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user