Remove python_2_unicode_compatible usage

Since we don't support Python 2 anymore, we don't need
to use python_2_unicode_compatible decorator.

Change-Id: I2aafc8d07ba95571b381ff65ba9e5c0044e2d959
This commit is contained in:
Ivan Kolodyazhny 2020-03-09 14:54:07 +02:00
parent c0a7a43d3f
commit 1fc70d7504
2 changed files with 0 additions and 5 deletions

View File

@ -33,7 +33,6 @@ from django.conf.urls import include
from django.conf.urls import url
from django.core.exceptions import ImproperlyConfigured
from django.urls import reverse
from django.utils.encoding import python_2_unicode_compatible
from django.utils.functional import empty
from django.utils.functional import SimpleLazyObject
from django.utils.module_loading import module_has_submodule
@ -105,7 +104,6 @@ class NotRegistered(Exception):
pass
@python_2_unicode_compatible
class HorizonComponent(object):
policy_rules = tuple()

View File

@ -28,7 +28,6 @@ from django.forms import widgets
from django.template.loader import get_template
from django import urls
from django.utils.encoding import force_text
from django.utils.encoding import python_2_unicode_compatible
from django.utils.functional import Promise
from django.utils import html
from django.utils.safestring import mark_safe
@ -435,7 +434,6 @@ class ThemableCheckboxInput(widgets.CheckboxInput):
# NOTE(adriant): SubWidget was removed in Django 1.11 and thus has been moved
# to our codebase until we redo how we handle widgets.
@html.html_safe
@python_2_unicode_compatible
class SubWidget(object):
"""SubWidget class from django 1.10.7 codebase
@ -458,7 +456,6 @@ class SubWidget(object):
# Django 1.11 so ChoiceInput has been moved to our codebase until we redo how
# we handle widgets.
@html.html_safe
@python_2_unicode_compatible
class ChoiceInput(SubWidget):
"""ChoiceInput class from django 1.10.7 codebase