aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils/tracking
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-16 23:20:08 +0200
committerAymeric Augustin2013-10-17 18:24:58 +0200
commit21e21aa088cde88cc5c690fa1f931a6208a8112a (patch)
tree89817e9ff0698e23b149da569153f04891f222c6 /debug_toolbar/utils/tracking
parentedd871bd37833fff7c5964896299999ce6da8e1c (diff)
downloaddjango-debug-toolbar-21e21aa088cde88cc5c690fa1f931a6208a8112a.tar.bz2
Replace basestring by six.string_types.
Diffstat (limited to 'debug_toolbar/utils/tracking')
-rw-r--r--debug_toolbar/utils/tracking/db.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/debug_toolbar/utils/tracking/db.py b/debug_toolbar/utils/tracking/db.py
index 34adfae..f87f01c 100644
--- a/debug_toolbar/utils/tracking/db.py
+++ b/debug_toolbar/utils/tracking/db.py
@@ -9,6 +9,7 @@ from threading import local
from django.conf import settings
from django.template import Node
from django.utils.encoding import force_text
+from django.utils import six
from debug_toolbar.utils import ms_from_timedelta, tidy_stacktrace, \
get_template_info, get_stack
@@ -72,7 +73,7 @@ class NormalCursorWrapper(object):
self.logger = logger
def _quote_expr(self, element):
- if isinstance(element, basestring):
+ if isinstance(element, six.string_types):
element = element.replace("'", "''")
return "'%s'" % element
else: