# HG changeset patch # User Paul Boddie # Date 1242597020 -7200 # Node ID 62219b8d6bafcadd9c3b46ac8ae20476776e8228 # Parent 526a20aebd06cef85371f20dc54b672892a186ab Fixed context detection in CheckFrame. diff -r 526a20aebd06 -r 62219b8d6baf rsvp.py --- a/rsvp.py Sun May 17 20:01:13 2009 +0200 +++ b/rsvp.py Sun May 17 23:50:20 2009 +0200 @@ -493,16 +493,16 @@ # Retrieve the context from the first local. frame = self.local_sp_stack[-1] - context, ref = self.frame_stack[frame] # + 0 + context_context, context_ref = self.frame_stack[frame] # + 0 nlocals = len(self.frame_stack[frame:]) # Support sliding of the frame to exclude any inappropriate context. - if context is None: + if context_ref is None: self.local_sp_stack[-1] += 1 nlocals -= 1 else: - context_data = self.load(context) + context_data = self.load(context_ref) if context_data.attrcode is None: # absent attrcode == class self.local_sp_stack[-1] += 1 nlocals -= 1