From c329ff14bc024cd29264370a9fe4fc736d2a09a1 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Fri, 6 Dec 2013 22:40:37 -0600 Subject: [PATCH] Fix failing doctest on systems w/o PIL --- skimage/io/manage_plugins.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/skimage/io/manage_plugins.py b/skimage/io/manage_plugins.py index e68594a2..ace57d8f 100644 --- a/skimage/io/manage_plugins.py +++ b/skimage/io/manage_plugins.py @@ -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: