From 6c39ec43be1942bd2b21418736141cbdbaf39e75 Mon Sep 17 00:00:00 2001 From: arbisoft Date: Tue, 16 Jul 2019 12:34:28 +0500 Subject: [PATCH] Fixing python-modernize issues. --- lms/djangoapps/verify_student/admin.py | 4 +++- lms/djangoapps/verify_student/apps.py | 2 ++ lms/djangoapps/verify_student/message_types.py | 2 ++ lms/djangoapps/verify_student/services.py | 6 ++++-- lms/djangoapps/verify_student/tasks.py | 2 ++ lms/djangoapps/verify_student/urls.py | 2 ++ lms/djangoapps/verify_student/utils.py | 2 ++ 7 files changed, 17 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/verify_student/admin.py b/lms/djangoapps/verify_student/admin.py index 3db76cda4c..81b0ec64cc 100644 --- a/lms/djangoapps/verify_student/admin.py +++ b/lms/djangoapps/verify_student/admin.py @@ -3,9 +3,11 @@ Admin site configurations for verify_student. """ +from __future__ import absolute_import + from django.contrib import admin -from lms.djangoapps.verify_student.models import SoftwareSecurePhotoVerification, SSOVerification, ManualVerification +from lms.djangoapps.verify_student.models import ManualVerification, SoftwareSecurePhotoVerification, SSOVerification @admin.register(SoftwareSecurePhotoVerification) diff --git a/lms/djangoapps/verify_student/apps.py b/lms/djangoapps/verify_student/apps.py index 3d07692b14..cbc1d7c447 100644 --- a/lms/djangoapps/verify_student/apps.py +++ b/lms/djangoapps/verify_student/apps.py @@ -2,6 +2,8 @@ Student Identity Verification Application Configuration """ +from __future__ import absolute_import + from django.apps import AppConfig diff --git a/lms/djangoapps/verify_student/message_types.py b/lms/djangoapps/verify_student/message_types.py index e9603803c6..e04c0c07c7 100644 --- a/lms/djangoapps/verify_student/message_types.py +++ b/lms/djangoapps/verify_student/message_types.py @@ -2,6 +2,8 @@ ACE message types for the verify_student module. """ +from __future__ import absolute_import + from openedx.core.djangoapps.ace_common.message import BaseMessageType diff --git a/lms/djangoapps/verify_student/services.py b/lms/djangoapps/verify_student/services.py index f815a9cf90..abf2c6a224 100644 --- a/lms/djangoapps/verify_student/services.py +++ b/lms/djangoapps/verify_student/services.py @@ -2,9 +2,11 @@ Implementation of abstraction layer for other parts of the system to make queries related to ID Verification. """ -import logging +from __future__ import absolute_import +import logging from itertools import chain + from django.conf import settings from django.urls import reverse from django.utils.translation import ugettext as _ @@ -13,7 +15,7 @@ from course_modes.models import CourseMode from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers from student.models import User -from .models import SoftwareSecurePhotoVerification, SSOVerification, ManualVerification +from .models import ManualVerification, SoftwareSecurePhotoVerification, SSOVerification from .utils import earliest_allowed_verification_date, most_recent_verification log = logging.getLogger(__name__) diff --git a/lms/djangoapps/verify_student/tasks.py b/lms/djangoapps/verify_student/tasks.py index 63fe41a421..6f8f58768b 100644 --- a/lms/djangoapps/verify_student/tasks.py +++ b/lms/djangoapps/verify_student/tasks.py @@ -1,6 +1,8 @@ """ Django Celery tasks for service status app """ +from __future__ import absolute_import + import logging from smtplib import SMTPException diff --git a/lms/djangoapps/verify_student/urls.py b/lms/djangoapps/verify_student/urls.py index 5f678bbbaf..322090bc28 100644 --- a/lms/djangoapps/verify_student/urls.py +++ b/lms/djangoapps/verify_student/urls.py @@ -2,6 +2,8 @@ URL definitions for the verify_student app. """ +from __future__ import absolute_import + from django.conf import settings from django.conf.urls import url diff --git a/lms/djangoapps/verify_student/utils.py b/lms/djangoapps/verify_student/utils.py index 014446d80a..929baaff28 100644 --- a/lms/djangoapps/verify_student/utils.py +++ b/lms/djangoapps/verify_student/utils.py @@ -3,6 +3,8 @@ Common Utilities for the verify_student application. """ +from __future__ import absolute_import + import datetime import logging