This commit is contained in:
andy
2011-10-03 20:55:35 +02:00
committed by Stefan van der Walt
parent 7448ba2529
commit fc612a830e
2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -10,7 +10,8 @@ from _plugins import info as plugin_info
available_plugins = plugins()
for preferred_plugin in ['pil', 'matplotlib', 'gtk', 'freeimage', 'qt', 'null']:
for preferred_plugin in ['pil',
'matplotlib', 'gtk', 'freeimage', 'qt', 'null']:
if preferred_plugin in available_plugins:
use_plugin(preferred_plugin)
break
@@ -20,6 +21,7 @@ from collection import *
from io import *
def _update_doc(doc):
"""Add a list of plugins to the module docstring, formatted as
a ReStructuredText table.
@@ -37,7 +39,7 @@ def _update_doc(doc):
info.insert(0, ('=' * col_1_len, {'description': '=' * col_2_len}))
info.insert(1, ('Plugin', {'description': 'Description'}))
info.insert(2, ('-' * col_1_len, {'description': '-' * col_2_len}))
info.append( ('=' * col_1_len, {'description': '=' * col_2_len}))
info.append(('=' * col_1_len, {'description': '=' * col_2_len}))
for (name, meta_data) in info:
wrapped_descr = wrap(meta_data.get('description', ''),
+2
View File
@@ -9,9 +9,11 @@ scikits.image.io.plugins()
for a list of available plugins.'''
def imshow(*args, **kwargs):
warnings.warn(RuntimeWarning(message))
def imread(*args, **kwargs):
warnings.warn(RuntimeWarning(message))