mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-30 11:41:38 +08:00
Import fail if python is runned with -OO
Hello, This fix a crash on skimage import if Python compilation optimization is set to 2 (Remove docstrings / Run python with -OO argument)
This commit is contained in:
1 parent
a2d74e5260
commit
d43351c578
1 file changed
+3
-2
@@ -10,6 +10,7 @@ from .collection import *
|
||||
|
||||
from ._io import *
|
||||
from ._image_stack import *
|
||||
import sys
|
||||
|
||||
|
||||
reset_plugins()
|
||||
@@ -58,5 +59,5 @@ def _update_doc(doc):
|
||||
|
||||
return doc
|
||||
|
||||
|
||||
__doc__ = _update_doc(__doc__)
|
||||
if sys.flags.optimize < 2:
|
||||
__doc__ = _update_doc(__doc__)
|
||||
Reference in new issue
Block a user