From 2bae587a76aaa4f2b80f8c5566db3c9ade16ad0c Mon Sep 17 00:00:00 2001 From: Pierre Tardy Date: Mon, 15 May 2017 11:28:42 +0200 Subject: [PATCH] fix warning on py2 as well object takes no constructor argument whatever the python version. we simplify the code to not use constructor arguments --- moto/core/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/moto/core/models.py b/moto/core/models.py index a3a343aa7..6e93f911a 100644 --- a/moto/core/models.py +++ b/moto/core/models.py @@ -229,10 +229,7 @@ class InstanceTrackerMeta(type): @six.add_metaclass(InstanceTrackerMeta) class BaseModel(object): def __new__(cls, *args, **kwargs): - if six.PY2: - instance = super(BaseModel, cls).__new__(cls, *args, **kwargs) - else: - instance = super(BaseModel, cls).__new__(cls) + instance = super(BaseModel, cls).__new__(cls) cls.instances.append(instance) return instance