# HG changeset patch # User Paul Boddie # Date 1363560689 -3600 # Node ID e8f899820cdf98d034d017b039b9f61242ec5569 # Parent 65bd8c2c14dfb4fbc9724a30c1d076e916a474d4 Fixed an apparently duplicated method to reflect its anticipated purpose. diff -r 65bd8c2c14df -r e8f899820cdf micropython/data.py --- a/micropython/data.py Sun Mar 17 23:50:35 2013 +0100 +++ b/micropython/data.py Sun Mar 17 23:51:29 2013 +0100 @@ -509,7 +509,7 @@ # parent. for context in self.get_contexts(): - if not ( + if ( isinstance(context, Class) and not ( context is self.parent or context.has_subclass(self.parent) or @@ -522,7 +522,7 @@ # Instance attributes are not defined within a hierarchy. else: - return False + return True def __repr__(self): if self.position is not None: