attempted fix for wrong args error

This commit is contained in:
Rob Weber 2015-05-26 08:43:21 -05:00
parent faccf424b7
commit 2a5accfed1

View File

@ -19,7 +19,7 @@ class ApiAttribute(object):
if obj.dirty.get(self.name) is not None:
obj.dirty[self.name] = True
def __del__(self, obj):
def __del__(self, obj=None):
"""Delete value of this attribute."""
del obj.attr[self.name]
if obj.dirty.get(self.name) is not None: