Skip to content

Commit

Permalink
Remove usage of super on an old style classes
Browse files Browse the repository at this point in the history
  • Loading branch information
devsli committed Mar 3, 2016
1 parent c4783be commit 0b6851f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sofort/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def to_native(self, value):

class SofortListType(ForcedListType):
def __init__(self, field_name='', *args, **kwargs):
super(SofortListType, self).__init__(*args, **kwargs)
ForcedListType.__init__(self, *args, **kwargs)
self.field_name = field_name

def to_native(self, value):
return super(SofortListType, self).to_native(value[self.field_name])
return ForcedListType.to_native(self, value[self.field_name])


class Iso8601DateTimeType(DateTimeType):
Expand All @@ -48,7 +48,7 @@ class ErrorModel(Model):

class WarningModel(ErrorModel):
def import_data(self, *args, **kwargs):
super(WarningModel, self).import_data(*args, **kwargs)
ErrorModel.import_data(self, *args, **kwargs)
warn(SofortWarning(**self.to_primitive()))


Expand Down

0 comments on commit 0b6851f

Please sign in to comment.