aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils/tracking/db.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-16 22:08:43 +0200
committerAymeric Augustin2013-10-17 18:24:57 +0200
commit79831e4053b472921621f288483e95a961a4d142 (patch)
treec22c209a8f017231b2a82cf3986edeacdd8d087d /debug_toolbar/utils/tracking/db.py
parent604499223d6a074141b8901a4fbf53b28fd17126 (diff)
downloaddjango-debug-toolbar-79831e4053b472921621f288483e95a961a4d142.tar.bz2
Remove unused imports.
Diffstat (limited to 'debug_toolbar/utils/tracking/db.py')
-rw-r--r--debug_toolbar/utils/tracking/db.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/debug_toolbar/utils/tracking/db.py b/debug_toolbar/utils/tracking/db.py
index bb205fb..8c728b4 100644
--- a/debug_toolbar/utils/tracking/db.py
+++ b/debug_toolbar/utils/tracking/db.py
@@ -1,25 +1,16 @@
import sys
from datetime import datetime
+import json
from threading import local
from django.conf import settings
from django.template import Node
-from django.utils.encoding import force_unicode, smart_str
+from django.utils.encoding import force_unicode
from debug_toolbar.utils import ms_from_timedelta, tidy_stacktrace, \
get_template_info, get_stack
-from debug_toolbar.utils.compat.db import connections
-try:
- import json
-except ImportError: # python < 2.6
- from django.utils import simplejson as json
-
-try:
- from hashlib import sha1
-except ImportError: # python < 2.5
- from django.utils.hashcompat import sha_constructor as sha1
# TODO:This should be set in the toolbar loader as a default and panels should
# get a copy of the toolbar object with access to its config dictionary