Merge "Remove python_2_unicode_compatible usage"

This commit is contained in:
Zuul 2020-03-10 08:16:42 +00:00 committed by Gerrit Code Review
commit 1a85ffd97c
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