Changed double quotes to single quotes in docstrings.

This commit is contained in:
Mark Winterbottom 2015-11-02 15:50:04 +00:00
parent a6069d93db
commit 0c19acba78
3 changed files with 7 additions and 8 deletions

View File

@ -7,14 +7,12 @@ log = logging.getLogger(__name__)
def harvest_source_delete(context, data_dict): def harvest_source_delete(context, data_dict):
""" '''Deletes an existing harvest source.
Deletes an existing harvest source
This method just proxies the request to package_delete, This method just proxies the request to package_delete,
which will delete the actual harvest type dataset and the which will delete the actual harvest type dataset and the
HarvestSource object (via the after_delete extension point). HarvestSource object (via the after_delete extension point).
'''
"""
log.info('Deleting harvest source: %r', data_dict) log.info('Deleting harvest source: %r', data_dict)

View File

@ -440,7 +440,7 @@ def harvest_sources_reindex(context, data_dict):
@logic.side_effect_free @logic.side_effect_free
def harvest_source_reindex(context, data_dict): def harvest_source_reindex(context, data_dict):
"""Reindex a single harvest source.""" '''Reindex a single harvest source.'''
harvest_source_id = logic.get_or_bust(data_dict, 'id') harvest_source_id = logic.get_or_bust(data_dict, 'id')
defer_commit = context.get('defer_commit', False) defer_commit = context.get('defer_commit', False)

View File

@ -25,7 +25,8 @@ def harvest_source_id_exists(value, context):
def harvest_job_exists(value, context): def harvest_job_exists(value, context):
"""Check if a harvest job exists and returns the model if it does""" '''Check if a harvest job exists and returns the model if it does'''
result = HarvestJob.get(value, None) result = HarvestJob.get(value, None)
if not result: if not result:
@ -60,10 +61,10 @@ def _normalize_url(url):
def harvest_source_url_validator(key, data, errors, context): def harvest_source_url_validator(key, data, errors, context):
"""Validate the provided harvest source URL. '''Validate the provided harvest source URL.
Checks that the URL is not already existing with the same config. Checks that the URL is not already existing with the same config.
""" '''
package = context.get("package") package = context.get("package")