BOM-2351: Removed unused imports from common/djangoapps/{track, util}
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user