zerver/tornado: remove `import six`.

This commit is contained in:
rht 2017-09-27 10:09:12 +02:00 committed by Tim Abbott
parent 035ed93111
commit 241e318eba
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@
import sys
import tornado.web
import logging
import six
from django import http
from django.conf import settings
from django.core.handlers.wsgi import WSGIRequest, get_script_name
@ -129,7 +128,7 @@ class AsyncDjangoHandler(tornado.web.RequestHandler, base.BaseHandler):
mw_instance = mw_class()
except MiddlewareNotUsed as exc:
if settings.DEBUG:
if six.text_type(exc):
if str(exc):
base.logger.debug('MiddlewareNotUsed(%r): %s', middleware_path, exc)
else:
base.logger.debug('MiddlewareNotUsed: %r', middleware_path)