mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
pep8
This commit is contained in:
committed by
Stefan van der Walt
parent
7448ba2529
commit
fc612a830e
@@ -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', ''),
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user