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

@@ -3,7 +3,7 @@
from lettuce import world, step
from selenium.webdriver.common.keys import Keys
from common import type_in_codemirror, upload_file
from common import type_in_codemirror
from django.conf import settings
from nose.tools import assert_true, assert_false

View File

@@ -2,7 +2,6 @@
import copy
import mock
from mock import patch
import shutil
import lxml.html
from lxml import etree

View File

@@ -10,7 +10,6 @@ from contentstore.tests.utils import AjaxEnabledTestClient
from xmodule.modulestore.django import ModuleI18nService
from django.utils import translation
from django.utils.translation import get_language
from django.conf import settings
from xmodule.modulestore.tests.factories import ItemFactory, CourseFactory
from contentstore.views.preview import _preview_module_system

View File

@@ -14,7 +14,6 @@ from student.roles import (
CourseInstructorRole, CourseStaffRole, CourseCreatorRole, LibraryUserRole,
OrgStaffRole, OrgInstructorRole, OrgLibraryUserRole,
)
from xblock.reference.user_service import XBlockUser
from xmodule.modulestore import ModuleStoreEnum
from xmodule.modulestore.django import modulestore
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase

View File

@@ -3,7 +3,6 @@ Common utility functions useful throughout the contentstore
"""
import logging
import re
from datetime import datetime
from pytz import UTC

View File

@@ -5,8 +5,6 @@ in a 404 error.
"""
# pylint: disable=unused-argument
from edxmako.shortcuts import render_to_response
from mako.exceptions import TopLevelLookupException
from django.http import HttpResponseNotFound
def dev_mode(request):

View File

@@ -9,10 +9,9 @@ import urllib
from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import redirect
from django.utils.translation import ugettext as _
from edxmako.shortcuts import render_to_string, render_to_response
from edxmako.shortcuts import render_to_string
from opaque_keys.edx.keys import UsageKey
from xblock.core import XBlock
import dogstats_wrapper as dog_stats_api

View File

@@ -27,7 +27,6 @@ from xblock.runtime import KvsFieldData
from xblock.django.request import webob_to_django_response, django_to_webob_request
from xblock.exceptions import NoSuchHandlerError
from xblock.fragment import Fragment
from student.auth import has_studio_read_access, has_studio_write_access
from xblock_django.user_service import DjangoXBlockUserService
from lms.djangoapps.lms_xblock.field_data import LmsFieldData

View File

@@ -10,7 +10,6 @@ import pytz
from django.conf import settings
from django.core.exceptions import PermissionDenied
from django.test.utils import override_settings
from django.utils.translation import ugettext as _
from contentstore.courseware_index import CoursewareSearchIndexer, SearchIndexingError

View File

@@ -4,7 +4,7 @@ Tests course_creators.views.py.
from django.contrib.auth.models import User
from django.core.exceptions import PermissionDenied
from django.test import TestCase, RequestFactory
from django.test import TestCase
from django.core.urlresolvers import reverse
from course_creators.views import add_user_with_status_unrequested, add_user_with_status_granted