commit/galaxy-central: dan: Fix for missing string punctuation import in web/base/controllers/admin.py
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/2d12f10c87c7/ changeset: 2d12f10c87c7 user: dan date: 2012-10-15 15:34:38 summary: Fix for missing string punctuation import in web/base/controllers/admin.py affected #: 1 file diff -r 027cc4cd224b9d5ba7f09393191b9e9322b7acf6 -r 2d12f10c87c73cb0ca2d9ef227613230d80736a9 lib/galaxy/web/base/controllers/admin.py --- a/lib/galaxy/web/base/controllers/admin.py +++ b/lib/galaxy/web/base/controllers/admin.py @@ -1,4 +1,5 @@ from datetime import datetime, timedelta +from string import punctuation as PUNCTUATION from galaxy import web, util from galaxy.model.orm import * @@ -1016,7 +1017,7 @@ msg = 'Please enter an error message to display to the user describing why the job was terminated' status = 'error' elif job_ids: - if stop_msg[-1] not in string.punctuation: + if stop_msg[-1] not in PUNCTUATION: stop_msg += '.' for job_id in job_ids: trans.app.job_manager.job_stop_queue.put( job_id, error_msg="This job was stopped by an administrator: %s For more information or help" % stop_msg ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket