BUG: Fix contains logic when override is not used.

The internal _data should be checked, not the __dict__
This commit is contained in:
Eddie Hebert
2013-05-23 11:31:58 -04:00
parent 0ef428c8e0
commit 25d6f3afd1
+1 -1
View File
@@ -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):
"""