From 79831e4053b472921621f288483e95a961a4d142 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 16 Oct 2013 22:08:43 +0200 Subject: Remove unused imports. --- debug_toolbar/utils/tracking/db.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'debug_toolbar/utils') 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 -- cgit v1.2.3