diff --git a/pyfarm/master/admin/jobtypes.py b/pyfarm/master/admin/jobtypes.py index 53a563d9..1425eca1 100644 --- a/pyfarm/master/admin/jobtypes.py +++ b/pyfarm/master/admin/jobtypes.py @@ -40,6 +40,7 @@ class LimitedLength(DataRequired): """Validates that a given field is the proper length""" + # pylint: disable=super-on-old-class def __init__(self, length): super(LimitedLength, self).__init__() self.length = length diff --git a/pyfarm/master/login.py b/pyfarm/master/login.py index f643656e..9678bc20 100644 --- a/pyfarm/master/login.py +++ b/pyfarm/master/login.py @@ -75,6 +75,7 @@ class LoginForm(Form): username = TextField(validators=[validators.Required()]) password = PasswordField(validators=[validators.Required()]) + # pylint: disable=super-on-old-class def __init__(self, *args, **kwargs): self.dbuser = False super(LoginForm, self).__init__(*args, **kwargs) diff --git a/pyfarm/models/core/types.py b/pyfarm/models/core/types.py index 79ccb767..32ee1034 100644 --- a/pyfarm/models/core/types.py +++ b/pyfarm/models/core/types.py @@ -142,7 +142,7 @@ class IPAddress(_IPAddress): Custom version of :class:`netaddr.IPAddress` which can match itself against other instance of the same class, a string, or an integer. """ - def __eq__(self, other): + def __eq__(self, other): # pylint: disable=super-on-old-class if isinstance(other, STRING_TYPES): return str(self) == other elif isinstance(other, int): @@ -150,7 +150,7 @@ def __eq__(self, other): else: return super(IPAddress, self).__eq__(other) - def __ne__(self, other): + def __ne__(self, other): # pylint: disable=super-on-old-class if isinstance(other, STRING_TYPES): return str(self) != other elif isinstance(other, int):