From 3ec8dc6858f55083d7523673b5a211337eb76581 Mon Sep 17 00:00:00 2001 From: bendikro Date: Mon, 2 May 2016 14:07:32 +0200 Subject: [PATCH] [Lint] Remove warnings from .pylintrc Remove warnings from ignore list in .pylintrc: * super-on-old-class * pointless-except * non-parent-init-called --- .pylintrc | 6 +++--- deluge/log.py | 2 +- deluge/ui/gtkui/dialogs.py | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.pylintrc b/.pylintrc index cb7eadf16..8a091e614 100644 --- a/.pylintrc +++ b/.pylintrc @@ -64,13 +64,13 @@ confidence= # Category per line (wrapped categories are indented) using symbolic names instead of ids. disable=missing-docstring, invalid-name, old-style-class, bad-continuation, wrong-import-position, wrong-import-order, - no-member, not-callable, no-name-in-module, super-on-old-class, + no-member, not-callable, no-name-in-module, locally-disabled, R, unused-argument, fixme, protected-access, import-error, unused-variable, global-statement, attribute-defined-outside-init, arguments-differ, - no-init, non-parent-init-called, super-init-not-called, - broad-except, pointless-except + no-init, super-init-not-called, + broad-except [REPORTS] diff --git a/deluge/log.py b/deluge/log.py index 4c2c9b620..eab4eaaa6 100644 --- a/deluge/log.py +++ b/deluge/log.py @@ -34,7 +34,7 @@ MAX_LOGGER_NAME_LENGTH = 10 class Logging(LoggingLoggerClass): def __init__(self, logger_name): - LoggingLoggerClass.__init__(self, logger_name) + super(Logging, self).__init__(logger_name) # This makes module name padding increase to the biggest module name # so that logs keep readability. diff --git a/deluge/ui/gtkui/dialogs.py b/deluge/ui/gtkui/dialogs.py index 97172571a..6a5a616e6 100644 --- a/deluge/ui/gtkui/dialogs.py +++ b/deluge/ui/gtkui/dialogs.py @@ -7,6 +7,8 @@ # See LICENSE for more details. # +# pylint: disable=super-on-old-class + import gtk from twisted.internet import defer