Skip to content

Commit

Permalink
Python 2 constructor style
Browse files Browse the repository at this point in the history
  • Loading branch information
diegojromerolopez committed May 8, 2017
1 parent 7d8396b commit 5c13756
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion trello/attachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Attachments(TrelloBase):
https://developers.trello.com/advanced-reference/card#get-1-cards-card-id-or-shortlink-attachments
"""
def __init__(self, id, bytes, date, edge_color, idMember, is_upload, mime_type, name, previews, url):
super().__init__()
super(Attachments, self).__init__()
self.id = id
self.bytes = bytes
self.date = dateparser.parse(date)
Expand Down
2 changes: 1 addition & 1 deletion trello/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, client=None, board_id=None, organization=None, name=''):
:board_id: ID for this board
"""
super().__init__()
super(Board, self).__init__()
if organization is None:
self.client = client
else:
Expand Down
2 changes: 1 addition & 1 deletion trello/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(self, parent, card_id, name=''):
:parent: reference to the parent trello list
:card_id: ID for this card
"""
super().__init__()
super(Card, self).__init__()
if isinstance(parent, List):
self.trello_list = parent
self.board = parent.board
Expand Down
2 changes: 1 addition & 1 deletion trello/checklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Checklist(TrelloBase):
"""

def __init__(self, client, checked, obj, trello_card=None):
super().__init__()
super(Checklist, self).__init__()
self.client = client
self.trello_card = trello_card
self.id = obj['id']
Expand Down
2 changes: 1 addition & 1 deletion trello/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Label(TrelloBase):
Class representing a Trello Label.
"""
def __init__(self, client, label_id, name, color=""):
super().__init__()
super(Label, self).__init__()
self.client = client
self.id = label_id
self.name = name
Expand Down
2 changes: 1 addition & 1 deletion trello/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Member(TrelloBase):
"""

def __init__(self, client, member_id, full_name=''):
super().__init__()
super(Member, self).__init__()
self.client = client
self.id = member_id
self.full_name = full_name
Expand Down
2 changes: 1 addition & 1 deletion trello/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Organization(TrelloBase):
Class representing an organization
"""
def __init__(self, client, organization_id, name=''):
super().__init__()
super(Organization, self).__init__()
self.client = client
self.id = organization_id
self.name = name
Expand Down
2 changes: 1 addition & 1 deletion trello/trellolist.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, board, list_id, name=''):
:board: reference to the parent board
:list_id: ID for this list
"""
super().__init__()
super(List, self).__init__()
self.board = board
self.client = board.client
self.id = list_id
Expand Down

0 comments on commit 5c13756

Please sign in to comment.