BOM-2351: Removed unused imports from common/djangoapps/{track, util}

This commit is contained in:
Jawayria
2021-02-12 17:51:52 +05:00
parent 42fc6aef03
commit e4cff58bed
4 changed files with 1 additions and 9 deletions

View File

@@ -1,9 +1,6 @@
"""
URLs for track app
"""
from django.conf import settings # lint-amnesty, pylint: disable=unused-import
from django.conf.urls import url
from . import views

View File

@@ -10,7 +10,6 @@ not migrating so as not to inconvenience users by logging them all out.
from functools import wraps
import six
from django.conf import settings # lint-amnesty, pylint: disable=unused-import
from django.core import cache
# If we can't find a 'general' CACHE defined in settings.py, we simply fall back
# to returning the default cache. This will happen with dev machines.

View File

@@ -8,9 +8,8 @@ import random
# TransactionManagementError used below actually *does* derive from the standard "Exception" class.
# lint-amnesty, pylint: disable=bad-option-value, nonstandard-exception
from contextlib import contextmanager
from functools import wraps # lint-amnesty, pylint: disable=unused-import
from django.db import DEFAULT_DB_ALIAS, DatabaseError, Error, transaction # lint-amnesty, pylint: disable=unused-import
from django.db import DEFAULT_DB_ALIAS, transaction # lint-amnesty, pylint: disable=unused-import
from openedx.core.lib.cache_utils import get_cache

View File

@@ -5,10 +5,7 @@ so that we can cache any keys, not just ones that memcache would ordinarily acce
import hashlib
import six.moves.urllib.error
import six.moves.urllib.parse
import six.moves.urllib.request
from django.utils.encoding import smart_str