mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 14:36:29 +08:00
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.
This commit is contained in:
@@ -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__)
|
||||
|
||||
Reference in New Issue
Block a user