pylint: fix useless-super-delegation warning

Change-Id: Iddea27e720dc7184fa3d524a2a465732f18d4dee
This commit is contained in:
Akihiro Motoki 2018-12-02 05:58:45 +09:00
parent 3143edef01
commit e9f75a7bcb
7 changed files with 0 additions and 25 deletions

View File

@ -36,7 +36,6 @@ disable=
unused-argument,
unused-wildcard-import,
useless-else-on-loop,
useless-super-delegation,
wildcard-import,
# "C" Coding convention violations
abstract-method,

View File

@ -78,9 +78,6 @@ class Image(base.APIResourceWrapper):
_ext_attrs = {"file", "locations", "schema", "tags", "virtual_size",
"kernel_id", "ramdisk_id", "image_url"}
def __init__(self, apiresource):
super(Image, self).__init__(apiresource)
def __getattribute__(self, attr):
# Because Glance v2 treats custom properties as normal
# attributes, we need to be more flexible than the resource

View File

@ -59,9 +59,6 @@ class CreateNamespaceForm(forms.SelfHandlingForm):
public = forms.BooleanField(label=_("Public"), required=False)
protected = forms.BooleanField(label=_("Protected"), required=False)
def __init__(self, request, *args, **kwargs):
super(CreateNamespaceForm, self).__init__(request, *args, **kwargs)
def clean(self):
data = super(CreateNamespaceForm, self).clean()
@ -116,9 +113,6 @@ class CreateNamespaceForm(forms.SelfHandlingForm):
class ManageResourceTypesForm(forms.SelfHandlingForm):
def __init__(self, request, *args, **kwargs):
super(ManageResourceTypesForm, self).__init__(request, *args, **kwargs)
def handle(self, request, context):
namespace_name = self.initial['id']
current_names = self.get_names(self.initial['resource_types'])
@ -154,9 +148,6 @@ class UpdateNamespaceForm(forms.SelfHandlingForm):
public = forms.BooleanField(label=_("Public"), required=False)
protected = forms.BooleanField(label=_("Protected"), required=False)
def __init__(self, request, *args, **kwargs):
super(UpdateNamespaceForm, self).__init__(request, *args, **kwargs)
def handle(self, request, data):
try:
params = {

View File

@ -29,9 +29,6 @@ class AddProtocolView(forms.ModalFormView):
success_url = "horizon:identity:identity_providers:protocols_tab"
page_title = _("Create Protocol")
def __init__(self):
super(AddProtocolView, self).__init__()
def get_success_url(self):
return reverse(self.success_url,
args=(self.kwargs['identity_provider_id'],))

View File

@ -110,9 +110,6 @@ class UpdateView(forms.ModalFormView):
success_url = reverse_lazy('horizon:identity:users:index')
page_title = _("Update User")
def dispatch(self, *args, **kwargs):
return super(UpdateView, self).dispatch(*args, **kwargs)
@memoized.memoized_method
def get_object(self):
try:

View File

@ -663,9 +663,6 @@ class CustomizeAction(workflows.Action):
'data-scriptsource-raw': _('Script Data')}),
required=False)
def __init__(self, *args):
super(CustomizeAction, self).__init__(*args)
def clean(self):
cleaned = super(CustomizeAction, self).clean()

View File

@ -33,9 +33,6 @@ class CreateSubnetInfoAction(network_workflows.CreateSubnetInfoAction):
with_subnet = forms.BooleanField(initial=True, required=False,
widget=forms.HiddenInput())
def __init__(self, request, *args, **kwargs):
super(CreateSubnetInfoAction, self).__init__(request, *args, **kwargs)
class Meta(object):
name = _("Subnet")
help_text = _('Create a subnet associated with the network. '