Fix unused-import errors

This commit is contained in:
Ned Batchelder
2016-07-31 09:36:46 -04:00
parent ef4c69881c
commit 8b1978ba6c
68 changed files with 20 additions and 102 deletions

View File

@@ -5,7 +5,6 @@ from __future__ import absolute_import
import logging
import mimetypes
import pkg_resources
from xblock.core import XBlock

View File

@@ -17,7 +17,6 @@ from xmodule.partitions.partitions import Group, UserPartition, UserPartitionErr
from xmodule.modulestore.django import modulestore
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase, TEST_DATA_MIXED_MODULESTORE
from xmodule.modulestore.tests.factories import ToyCourseFactory
from opaque_keys.edx.locations import SlashSeparatedCourseKey
from openedx.core.djangoapps.user_api.partition_schemes import RandomUserPartitionScheme
from ..partition_scheme import CohortPartitionScheme, get_cohorted_user_partition

View File

@@ -5,7 +5,7 @@ import unittest
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test import TestCase, override_settings
from django.test import TestCase
from django.contrib import staticfiles
from openedx.core.djangoapps.theming.tests.test_util import with_comprehensive_theme

View File

@@ -9,7 +9,6 @@ from edx_rest_framework_extensions.authentication import JwtAuthentication
from rest_framework import permissions
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.viewsets import ViewSet
from openedx.core.lib.api.authentication import (

View File

@@ -5,7 +5,6 @@ import json
from django.utils.html import escapejs
from mako.filters import decode
from markupsafe import escape
from xmodule.modulestore import EdxJSONEncoder

View File

@@ -6,8 +6,6 @@ from django.conf import settings
from xmodule.assetstore.assetmgr import AssetManager
from xmodule.contentstore.content import StaticContent
from xmodule.contentstore.django import contentstore
from xmodule.modulestore.django import modulestore
from xmodule.modulestore import ModuleStoreEnum
def course_image_url(course, image_key='course_image'):

View File

@@ -2,7 +2,6 @@
:class:`~django_require.staticstorage.OptimizedCachedRequireJsStorage`
"""
from pipeline.storage import PipelineCachedStorage
from require.storage import OptimizedFilesMixin
from django_pipeline_forgiving.storages import PipelineForgivingStorage

View File

@@ -1,7 +1,8 @@
"""
Tests for the gating API
"""
from mock import patch, MagicMock
from mock import patch
from nose.plugins.attrib import attr
from ddt import ddt, data
from milestones.tests.utils import MilestonesTestCaseMixin

View File

@@ -1,6 +1,5 @@
"""Tests covering edX API utilities."""
import json
import unittest
from django.core.cache import cache
from django.test.utils import override_settings

View File

@@ -26,8 +26,6 @@ from xblock.fragment import Fragment
from xmodule.seq_module import SequenceModule
from xmodule.vertical_block import VerticalBlock
from xmodule.x_module import shim_xmodule_js, XModuleDescriptor, XModule, PREVIEW_VIEWS, STUDIO_VIEW
from xmodule.modulestore import ModuleStoreEnum
from xmodule.modulestore.django import modulestore
log = logging.getLogger(__name__)