py3 fix - do not pass args/kwargs to object.__new__

This commit is contained in:
Matt Westcott 2015-02-19 20:45:23 +00:00
parent 76acbc5470
commit d6c5b1ed79

View file

@ -59,7 +59,7 @@ class Block(six.with_metaclass(BaseBlock, object)):
def __new__(cls, *args, **kwargs):
# adapted from django.utils.deconstruct.deconstructible; capture the arguments
# so that we can return them in the 'deconstruct' method
obj = super(Block, cls).__new__(cls, *args, **kwargs)
obj = super(Block, cls).__new__(cls)
obj._constructor_args = (args, kwargs)
return obj