From 23c44d8c5cf560cc8cb304d8753e8b658d1fe70d Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 16 Oct 2013 23:03:07 +0200 Subject: Enable unicode_literals in all non-empty modules. --- debug_toolbar/middleware.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'debug_toolbar/middleware.py') diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index 090e206..82f83da 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -1,6 +1,9 @@ """ Debug Toolbar middleware """ + +from __future__ import unicode_literals + import imp import threading @@ -48,7 +51,7 @@ class DebugToolbarMiddleware(object): self.show_toolbar = self._show_toolbar # default # The tag to attach the toolbar to - self.tag = u'' + self.tag = '' if hasattr(settings, 'DEBUG_TOOLBAR_CONFIG'): show_toolbar_callback = settings.DEBUG_TOOLBAR_CONFIG.get( @@ -58,7 +61,7 @@ class DebugToolbarMiddleware(object): tag = settings.DEBUG_TOOLBAR_CONFIG.get('TAG', None) if tag: - self.tag = u'' + self.tag = '' def _show_toolbar(self, request): if getattr(settings, 'TEST', False): -- cgit v1.2.3