From 9945ab4f67b141d6efec3f75893a4b5e72b76162 Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Tue, 15 May 2012 15:13:17 -0400 Subject: [PATCH] Changed setattr method. --- zipline/utils/protocol_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zipline/utils/protocol_utils.py b/zipline/utils/protocol_utils.py index 621d7ab9..376fc8c7 100644 --- a/zipline/utils/protocol_utils.py +++ b/zipline/utils/protocol_utils.py @@ -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