PEP8 fixes.

This commit is contained in:
John Chilton
2018-02-14 08:27:55 -05:00
parent d7de19b072
commit d5687bc418
+2 -2
View File
@@ -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',