From c842b907b5ddee8a446495fa8aea440d8abe3368 Mon Sep 17 00:00:00 2001 From: Stu Young Date: Tue, 21 May 2019 11:31:43 -0400 Subject: [PATCH] INCR-263 Run python-modernize on lms/djangoapps/instructor_task/config and lms/djangoapps/instructor_task/management (#20559) * run python modernize * run isort * Fix quality --- lms/djangoapps/instructor_task/config/models.py | 2 ++ .../instructor_task/management/commands/fail_old_tasks.py | 5 ++++- .../management/commands/tests/test_fail_old_tasks.py | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/instructor_task/config/models.py b/lms/djangoapps/instructor_task/config/models.py index 701f0f2452..23406d80c9 100644 --- a/lms/djangoapps/instructor_task/config/models.py +++ b/lms/djangoapps/instructor_task/config/models.py @@ -2,6 +2,8 @@ Models for configuration of settings relevant to instructor tasks. """ +from __future__ import absolute_import + from config_models.models import ConfigurationModel from django.db.models import IntegerField diff --git a/lms/djangoapps/instructor_task/management/commands/fail_old_tasks.py b/lms/djangoapps/instructor_task/management/commands/fail_old_tasks.py index 46ed086dd3..526f12cb62 100644 --- a/lms/djangoapps/instructor_task/management/commands/fail_old_tasks.py +++ b/lms/djangoapps/instructor_task/management/commands/fail_old_tasks.py @@ -1,4 +1,7 @@ -from __future__ import print_function, unicode_literals +""" +Commands to fail old tasks +""" +from __future__ import absolute_import, print_function, unicode_literals from datetime import datetime diff --git a/lms/djangoapps/instructor_task/management/commands/tests/test_fail_old_tasks.py b/lms/djangoapps/instructor_task/management/commands/tests/test_fail_old_tasks.py index dfa3f89f44..543f757ef6 100644 --- a/lms/djangoapps/instructor_task/management/commands/tests/test_fail_old_tasks.py +++ b/lms/djangoapps/instructor_task/management/commands/tests/test_fail_old_tasks.py @@ -1,3 +1,8 @@ +""" +Tests for failing old tasks +""" +from __future__ import absolute_import + from datetime import datetime import ddt