From 897515b1128c6cc1ce1f2e2ec03ee8ac2ae7b45b Mon Sep 17 00:00:00 2001 From: Florian Eitel Date: Sat, 14 Jan 2023 12:45:01 +0100 Subject: [PATCH] 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. --- src/nsupdate/urls.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/nsupdate/urls.py b/src/nsupdate/urls.py index 01ff657..e0526ee 100644 --- a/src/nsupdate/urls.py +++ b/src/nsupdate/urls.py @@ -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