mirror of https://github.com/zulip/zulip.git
zerver/tornado: remove `import six`.
This commit is contained in:
parent
035ed93111
commit
241e318eba
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue