Fix failing doctest on systems w/o PIL

This commit is contained in:
Tony S Yu
2013-12-06 22:40:37 -06:00
parent 0f88bed41d
commit c329ff14bc
+8 -4
View File
@@ -197,15 +197,19 @@ def use_plugin(name, kind=None):
See Also
--------
plugins : List of available plugins
available_plugins : List of available plugins
Examples
--------
Use the Python Imaging Library to read images:
To use a plugin named 'null' as the default image reader, you would write:
>>> from skimage.io import use_plugin
>>> use_plugin('pil', 'imread')
>>> from skimage import io
>>> io.use_plugin('null', 'imread')
To see a list of available plugins run ``io.available_plugins``. Note that
this lists plugins that are defined, but the full list may not be usable
if your system does not have the required libraries installed.
"""
if kind is None: