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:
Florian Eitel 2023-01-14 12:45:01 +01:00
parent f4ab1964e2
commit 897515b112
Signed by: flo
GPG Key ID: 9987EAFEF6F686BB

View File

@ -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