[skimage] 17/24: Fix ImportError on Python 3

Andreas Tille tille at debian.org
Fri Dec 23 08:22:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to tag v0.3.1
in repository skimage.

commit 3f52256e6f808b5016ab799f10214cc7705d8444
Author: cgohlke <cgohlke at uci.edu>
Date:   Tue Oct 11 17:12:06 2011 -0700

    Fix ImportError on Python 3
---
 scikits/image/morphology/grey.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scikits/image/morphology/grey.py b/scikits/image/morphology/grey.py
index 73161a3..2eb9402 100644
--- a/scikits/image/morphology/grey.py
+++ b/scikits/image/morphology/grey.py
@@ -68,7 +68,7 @@ def greyscale_dilate(image, selem, out=None):
     if image is out:
         raise NotImplementedError("In-place dilation not supported!")
     try:
-        import cmorph
+        from . import cmorph
         out = cmorph.dilate(image, selem, out=out)
         return out;
     except ImportError:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/skimage.git



More information about the debian-science-commits mailing list