aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/middleware.py
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/middleware.py
parentedd871bd37833fff7c5964896299999ce6da8e1c (diff)
downloaddjango-debug-toolbar-21e21aa088cde88cc5c690fa1f931a6208a8112a.tar.bz2
Replace basestring by six.string_types.
Diffstat (limited to 'debug_toolbar/middleware.py')
-rw-r--r--debug_toolbar/middleware.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py
index 520a81e..c361a49 100644
--- a/debug_toolbar/middleware.py
+++ b/debug_toolbar/middleware.py
@@ -12,6 +12,7 @@ from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.utils.encoding import force_text
from django.utils.importlib import import_module
+from django.utils import six
import debug_toolbar.urls
from debug_toolbar.toolbar.loader import DebugToolbar
@@ -80,7 +81,7 @@ class DebugToolbarMiddleware(object):
__traceback_hide__ = True
if self.show_toolbar(request):
urlconf = getattr(request, 'urlconf', settings.ROOT_URLCONF)
- if isinstance(urlconf, basestring):
+ if isinstance(urlconf, six.string_types):
urlconf = import_module(getattr(request, 'urlconf', settings.ROOT_URLCONF))
if urlconf not in self._urlconfs: