From 5ccc520bb3018c7e7c9b03b84a104523665cdf94 Mon Sep 17 00:00:00 2001 From: Saleem Latif Date: Wed, 16 Dec 2015 10:27:24 +0500 Subject: [PATCH] Remove unused imports --- lms/djangoapps/instructor/views/api.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lms/djangoapps/instructor/views/api.py b/lms/djangoapps/instructor/views/api.py index 6898e7c6ef..1c16b3ce10 100644 --- a/lms/djangoapps/instructor/views/api.py +++ b/lms/djangoapps/instructor/views/api.py @@ -10,14 +10,13 @@ import json import logging import re import time -import requests from django.conf import settings from django.views.decorators.csrf import ensure_csrf_cookie, csrf_exempt from django.views.decorators.http import require_POST, require_http_methods from django.views.decorators.cache import cache_control from django.core.exceptions import ValidationError, PermissionDenied from django.core.mail.message import EmailMessage -from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned +from django.core.exceptions import ObjectDoesNotExist from django.db import IntegrityError, transaction from django.core.urlresolvers import reverse from django.core.validators import validate_email @@ -25,11 +24,9 @@ from django.utils.translation import ugettext as _ from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, HttpResponseNotFound from django.utils.html import strip_tags from django.shortcuts import redirect -from util.db import outer_atomic import string import random import unicodecsv -import urllib import decimal from student import auth from student.roles import GlobalStaff, CourseSalesAdminRole, CourseFinanceAdminRole @@ -52,7 +49,7 @@ from django_comment_common.models import ( FORUM_ROLE_MODERATOR, FORUM_ROLE_COMMUNITY_TA, ) -from edxmako.shortcuts import render_to_response, render_to_string +from edxmako.shortcuts import render_to_string from courseware.models import StudentModule from shoppingcart.models import ( Coupon, @@ -108,7 +105,6 @@ from .tools import ( set_due_date_extension, strip_if_string, bulk_email_is_enabled_for_course, - add_block_ids, ) from opaque_keys.edx.keys import CourseKey, UsageKey from opaque_keys.edx.locations import SlashSeparatedCourseKey