Ignore pylint error 7610 (translation-of-non-string) on where it is intended to do

As some i18n features need ```ugettext``` or its shorcut ```_``` to be called on a non-string-literal, so the pylint check of ```translation-of-non-string``` should be explicitly disabled in such situations.
This commit is contained in:
louyihua
2015-04-03 11:59:49 +08:00
parent 58afd8a7c7
commit 0d0d1a0ccd
8 changed files with 15 additions and 15 deletions

View File

@@ -127,7 +127,7 @@ def get_task_completion_info(instructor_task):
log.warning(fmt.format(instructor_task.task_id, instructor_task.task_output))
return (succeeded, _("No progress status information available"))
action_name = _(task_output['action_name'])
action_name = _(task_output['action_name']) # pylint: disable=translation-of-non-string
num_attempted = task_output['attempted']
num_total = task_output['total']