[Lint] Enable pylint warning super-init-not-called

This commit is contained in:
bendikro 2016-10-31 22:08:36 +01:00 committed by Calum Lind
parent d8242b4ef0
commit f96b9c8a23
5 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,7 @@ disable=
too-many-nested-blocks, too-many-return-statements,
# Warning
unused-argument, protected-access, import-error, unused-variable,
attribute-defined-outside-init, super-init-not-called,
attribute-defined-outside-init,
# Warning msgs that should eventually be enabled:
arguments-differ, global-statement, fixme, broad-except

View File

@ -18,6 +18,7 @@ class DelugeError(Exception):
return inst
def __init__(self, message=None):
super(DelugeError, self).__init__(message)
self.message = message
def __str__(self):
@ -43,7 +44,7 @@ class InvalidPathError(DelugeError):
class WrappedException(DelugeError):
def __init__(self, message, exception_type, traceback):
self.message = message
super(WrappedException, self).__init__(message)
self.type = exception_type
self.traceback = traceback

View File

@ -63,6 +63,7 @@ class GzipResource(Resource):
class PartialDownloadResource(Resource):
def __init__(self, *args, **kwargs):
Resource.__init__(self)
self.render_count = 0
def render(self, request):

View File

@ -29,6 +29,7 @@ log = logging.getLogger(__name__)
class BaseField(InputKeyHandler):
def __init__(self, parent=None, name=None, selectable=True, **kwargs):
super(BaseField, self).__init__()
self.name = name
self.parent = parent
self.fmt_keys = {}

View File

@ -31,6 +31,7 @@ class BaseInputPane(InputKeyHandler):
def __init__(self, mode, allow_rearrange=False, immediate_action=False, set_first_input_active=True,
border_off_west=0, border_off_north=0, border_off_east=0, border_off_south=0,
active_wrap=False, **kwargs):
InputKeyHandler.__init__(self)
self.inputs = []
self.mode = mode
self.active_input = 0