Remove usage of six
Dropping support for python 2 because it's dead. six was not declared correctly in requirements.txt and causes troubles. So removing the one usage.
This commit is contained in:
parent
f4ab1964e2
commit
897515b112
@ -2,8 +2,6 @@
|
||||
top-level url dispatching
|
||||
"""
|
||||
|
||||
import six
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import include, url
|
||||
from django.contrib import admin
|
||||
@ -55,7 +53,7 @@ def http_error(request, status, exception=None):
|
||||
except (AttributeError, IndexError):
|
||||
pass
|
||||
else:
|
||||
if isinstance(message, six.text_type):
|
||||
if isinstance(message, str):
|
||||
exception_repr = message
|
||||
else:
|
||||
# we do not have an exception for 500
|
||||
|
Loading…
x
Reference in New Issue
Block a user