pylint: fix bad-super-call

Change-Id: Ia81e5c8b77dbfcb48630b1736d581cdff73278ef
This commit is contained in:
Akihiro Motoki 2018-12-09 02:56:33 +09:00
parent 02a0f81f96
commit f3bd271fc9
6 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,6 @@ disable=
# "E" Error for important programming issues (likely bugs)
access-member-before-definition,
assignment-from-no-return,
bad-super-call,
import-error,
logging-too-few-args,
method-hidden,

View File

@ -1032,7 +1032,8 @@ class HorizonSite(Site):
def __new__(cls, *args, **kwargs):
if not cls._instance:
cls._instance = super(Site, cls).__new__(cls, *args, **kwargs)
cls._instance = super(HorizonSite, cls).__new__(cls,
*args, **kwargs)
return cls._instance

View File

@ -50,7 +50,7 @@ class PasswordMixin(forms.SelfHandlingForm):
def clean(self):
'''Check to make sure password fields match.'''
data = super(forms.Form, self).clean()
data = super(PasswordMixin, self).clean()
if 'password' in data and 'confirm_password' in data:
if data['password'] != data['confirm_password']:
raise ValidationError(_('Passwords do not match.'))

View File

@ -67,7 +67,7 @@ class LaunchImageNG(LaunchImage):
def __init__(self, attrs=None, **kwargs):
kwargs['preempt'] = True
super(LaunchImage, self).__init__(attrs, **kwargs)
super(LaunchImageNG, self).__init__(attrs, **kwargs)
def get_link_url(self, datum):
imageId = self.table.get_object_id(datum)

View File

@ -56,7 +56,7 @@ class LaunchSnapshotNG(LaunchSnapshot):
def __init__(self, attrs=None, **kwargs):
kwargs['preempt'] = True
super(LaunchSnapshot, self).__init__(attrs, **kwargs)
super(LaunchSnapshotNG, self).__init__(attrs, **kwargs)
def get_link_url(self, datum):
url = reverse(self.url)

View File

@ -74,7 +74,7 @@ class LaunchVolumeNG(LaunchVolume):
def __init__(self, attrs=None, **kwargs):
kwargs['preempt'] = True
super(LaunchVolume, self).__init__(attrs, **kwargs)
super(LaunchVolumeNG, self).__init__(attrs, **kwargs)
def get_link_url(self, datum):
url = reverse(self.url)