[#2797][Lint] Enable no-init pylint warning

This commit is contained in:
bendikro 2016-10-31 20:27:52 +01:00 committed by Calum Lind
parent 59d8fc9a14
commit a04718ebe5
3 changed files with 8 additions and 2 deletions

View File

@ -68,7 +68,10 @@ disable=missing-docstring, invalid-name, wrong-import-position, wrong-import-ord
R, R,
unused-argument, fixme, protected-access, import-error, unused-variable, unused-argument, fixme, protected-access, import-error, unused-variable,
global-statement, attribute-defined-outside-init, arguments-differ, global-statement, attribute-defined-outside-init, arguments-differ,
no-init, super-init-not-called, broad-except super-init-not-called,
# The following warnings should eventually be enabled:
broad-except
[REPORTS] [REPORTS]

View File

@ -198,7 +198,7 @@ def _download_file(url, filename, callback=None, headers=None, force_filename=Fa
except ImportError: except ImportError:
ctx_factory = ssl.ClientContextFactory() ctx_factory = ssl.ClientContextFactory()
else: else:
class TLSSNIContextFactory(ssl.ClientContextFactory): class TLSSNIContextFactory(ssl.ClientContextFactory): # pylint: disable=no-init
""" """
A custom context factory to add a server name for TLS connections. A custom context factory to add a server name for TLS connections.
""" """

View File

@ -73,6 +73,9 @@ SND_EVENT, SND_EVENT_DOC, SND_NAME, SND_PATH = range(4)
class GtkUiNotifications(CustomNotifications): class GtkUiNotifications(CustomNotifications):
def __init__(self, plugin_name=None):
CustomNotifications.__init__(self, plugin_name)
def enable(self): def enable(self):
CustomNotifications.enable(self) CustomNotifications.enable(self)
self.register_custom_blink_notification( self.register_custom_blink_notification(