Changed setattr method.

This commit is contained in:
Stephen Diehl
2012-05-15 15:13:17 -04:00
parent d503ce465a
commit 9945ab4f67
+2 -2
View File
@@ -51,8 +51,8 @@ class ndict(MutableMapping):
# -----------------
def __setattr__(self, key, value):
if 'ndict' in key or key == 'cls':
MutableMapping.__setattr__(self, key, value)
if '_ndict' in key or key == 'cls':
self.__dict__[key] = value
else:
self.__internal[key] = value
return value