From 25d6f3afd1b73ebf7a942d2ca84605be81e76f7b Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Thu, 23 May 2013 11:31:58 -0400 Subject: [PATCH] BUG: Fix contains logic when override is not used. The internal _data should be checked, not the __dict__ --- zipline/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/protocol.py b/zipline/protocol.py index 34462b0a..7c1660fc 100644 --- a/zipline/protocol.py +++ b/zipline/protocol.py @@ -142,7 +142,7 @@ class BarData(object): if self._contains_override: return self._contains_override(name) else: - return name in self.__dict__ + return name in self._data def has_key(self, name): """