Remove unused imports
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
"""
|
||||
Command to load course overviews.
|
||||
"""
|
||||
|
||||
import logging
|
||||
from optparse import make_option
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from opaque_keys import InvalidKeyError
|
||||
|
||||
@@ -6,7 +6,7 @@ import json
|
||||
import logging
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from django.db import models, transaction, IntegrityError
|
||||
from django.db import models, transaction
|
||||
from util.db import outer_atomic
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.db.models.signals import pre_delete
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Helper methods for testing cohorts.
|
||||
"""
|
||||
import factory
|
||||
|
||||
from factory import post_generation, Sequence
|
||||
from factory.django import DjangoModelFactory
|
||||
import json
|
||||
|
||||
@@ -5,7 +5,6 @@ import datetime
|
||||
import logging
|
||||
|
||||
from django.conf import settings
|
||||
from opaque_keys import InvalidKeyError
|
||||
import pytz
|
||||
from rest_framework import serializers
|
||||
from rest_framework.exceptions import PermissionDenied
|
||||
|
||||
@@ -19,7 +19,7 @@ from openedx.core.lib.api.authentication import (
|
||||
SessionAuthenticationAllowInactiveUser,
|
||||
)
|
||||
from openedx.core.lib.api.parsers import TypedFileUploadParser
|
||||
from openedx.core.lib.api.permissions import IsUserInUrl, IsUserInUrlOrStaff
|
||||
from openedx.core.lib.api.permissions import IsUserInUrl
|
||||
from openedx.core.lib.api.view_utils import DeveloperErrorViewMixin
|
||||
from openedx.core.djangoapps.user_api.accounts.image_helpers import get_profile_image_names, set_has_profile_image
|
||||
from .exceptions import ImageValidationError
|
||||
|
||||
@@ -4,7 +4,6 @@ from django.test import TestCase
|
||||
import mock
|
||||
from nose.plugins.attrib import attr
|
||||
|
||||
from openedx.core.djangoapps.programs.models import ProgramsApiConfig
|
||||
from openedx.core.djangoapps.programs.tests.mixins import ProgramsApiConfigMixin
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ import uuid
|
||||
|
||||
from django.test.client import RequestFactory
|
||||
|
||||
from courseware.models import StudentModule # pylint: disable=import-error
|
||||
from lms.djangoapps.lms_xblock.runtime import quote_slashes
|
||||
from xblock.fragment import Fragment
|
||||
from xmodule.modulestore import ModuleStoreEnum
|
||||
@@ -23,7 +22,6 @@ from openedx.core.lib.xblock_utils import (
|
||||
replace_jump_to_id_urls,
|
||||
replace_course_urls,
|
||||
replace_static_urls,
|
||||
grade_histogram,
|
||||
sanitize_html_id
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user