diff options
author | Zuul <zuul@review.opendev.org> | 2020-10-27 04:42:52 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-10-27 04:42:53 +0000 |
commit | f90c3cd50174af4927737e29e2765cd2d7ca507f (patch) | |
tree | 3d8cf4466064fea9d8d896b66081b22ae3adddb7 /openstack_auth | |
parent | 19c90c1ad037c8bcc743820508fd94dbd83b0258 (diff) | |
parent | e5d09edc205d70ffc315b5f0ae687b356f0833b9 (diff) | |
download | horizon-f90c3cd50174af4927737e29e2765cd2d7ca507f.tar.gz |
Merge "Use python3-style super()"
Diffstat (limited to 'openstack_auth')
-rw-r--r-- | openstack_auth/forms.py | 4 | ||||
-rw-r--r-- | openstack_auth/tests/data_v3.py | 2 | ||||
-rw-r--r-- | openstack_auth/tests/unit/test_auth.py | 2 | ||||
-rw-r--r-- | openstack_auth/tests/unit/test_utils.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/openstack_auth/forms.py b/openstack_auth/forms.py index b941e41ae..e49ff871d 100644 --- a/openstack_auth/forms.py +++ b/openstack_auth/forms.py @@ -77,7 +77,7 @@ class Login(django_auth_forms.AuthenticationForm): widget=forms.PasswordInput(render_value=False)) def __init__(self, *args, **kwargs): - super(Login, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) fields_ordering = ['username', 'password', 'region'] if settings.OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT: last_domain = self.request.COOKIES.get('login_domain', None) @@ -185,7 +185,7 @@ class DummyAuth(auth_plugin.BaseAuthPlugin): class Password(forms.Form): """Form used for changing user's password without having to log in.""" def __init__(self, *args, **kwargs): - super(Password, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.fields = collections.OrderedDict([ ( 'region', diff --git a/openstack_auth/tests/data_v3.py b/openstack_auth/tests/data_v3.py index ae1251429..f53f11ee2 100644 --- a/openstack_auth/tests/data_v3.py +++ b/openstack_auth/tests/data_v3.py @@ -37,7 +37,7 @@ class TestResponse(requests.Response): def __init__(self, data): self._text = None - super(TestResponse, self).__init__() + super().__init__() if isinstance(data, dict): self.status_code = data.get('status_code', 200) self.headers = data.get('headers', None) diff --git a/openstack_auth/tests/unit/test_auth.py b/openstack_auth/tests/unit/test_auth.py index 98c062d26..f4e7117aa 100644 --- a/openstack_auth/tests/unit/test_auth.py +++ b/openstack_auth/tests/unit/test_auth.py @@ -995,7 +995,7 @@ class OpenStackAuthTestsV3WithMock(test.TestCase): 'username': user.name} def setUp(self): - super(OpenStackAuthTestsV3WithMock, self).setUp() + super().setUp() if getattr(self, 'interface', None): override = self.settings(OPENSTACK_ENDPOINT_TYPE=self.interface) diff --git a/openstack_auth/tests/unit/test_utils.py b/openstack_auth/tests/unit/test_utils.py index ab91fdd01..59f1427bf 100644 --- a/openstack_auth/tests/unit/test_utils.py +++ b/openstack_auth/tests/unit/test_utils.py @@ -85,7 +85,7 @@ class UtilsTestCase(test.TestCase): class BehindProxyTestCase(test.TestCase): def setUp(self): - super(BehindProxyTestCase, self).setUp() + super().setUp() self.request = http.HttpRequest() def test_without_proxy(self): |