Skip to content

Commit

Permalink
adding some more igored super-on-old-class
Browse files Browse the repository at this point in the history
  • Loading branch information
opalmer committed Sep 15, 2014
1 parent 7eb2427 commit e3cc7f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyfarm/master/admin/jobtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyfarm/master/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions pyfarm/models/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ 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):
return int(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):
Expand Down

0 comments on commit e3cc7f8

Please sign in to comment.