From 0b6851f142612cd3c70c9e763983b0366d944e70 Mon Sep 17 00:00:00 2001 From: Leonid Suprun Date: Fri, 4 Mar 2016 00:02:12 +0700 Subject: [PATCH] Remove usage of super on an old style classes --- sofort/model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sofort/model.py b/sofort/model.py index e75f6e3..d538d85 100644 --- a/sofort/model.py +++ b/sofort/model.py @@ -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): @@ -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()))