From bf9eb6c8ded9d89062a9418d27962d99a95bf887 Mon Sep 17 00:00:00 2001 From: JGoutin Date: Fri, 9 Oct 2015 13:38:03 +0200 Subject: [PATCH] Update __init__.py A little optimization: Now, don't need to import "sys" and will also work if Skimage imported from a byte-compilled Python distribution. --- skimage/io/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/skimage/io/__init__.py b/skimage/io/__init__.py index b6ec5875..21cc5d62 100644 --- a/skimage/io/__init__.py +++ b/skimage/io/__init__.py @@ -10,7 +10,6 @@ from .collection import * from ._io import * from ._image_stack import * -import sys reset_plugins() @@ -59,5 +58,5 @@ def _update_doc(doc): return doc -if sys.flags.optimize < 2: +if __doc__ is not None: __doc__ = _update_doc(__doc__)