mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 05:45:37 +08:00
PEP8 fixes.
This commit is contained in:
@@ -710,14 +710,14 @@ class UserAPIController(BaseAPIController, UsesTagsMixin, CreatesUsersMixin, Cre
|
||||
errors['%s|%s' % (filter_type, filter_name)] = 'Filter function not found.'
|
||||
|
||||
short_description, description = None, None
|
||||
doc_string = docstring_trim( function.__doc__ )
|
||||
doc_string = docstring_trim(function.__doc__)
|
||||
split = doc_string.split('\n\n')
|
||||
if split:
|
||||
short_description = split[0]
|
||||
if len(split) > 1:
|
||||
description = split[1]
|
||||
else:
|
||||
log.warning( 'No description specified in the __doc__ string for %s.' % filter_name )
|
||||
log.warning('No description specified in the __doc__ string for %s.' % filter_name)
|
||||
|
||||
filter_inputs.append({
|
||||
'type': 'boolean',
|
||||
|
||||
Reference in New Issue
Block a user