1.1 --- a/micropython/data.py Sun May 24 19:03:03 2009 +0200
1.2 +++ b/micropython/data.py Sun May 24 20:28:56 2009 +0200
1.3 @@ -594,8 +594,8 @@
1.4 )
1.5 ]
1.6
1.7 - def get_direct_invocation_location(self):
1.8 - return self.get_instantiator().blocks[0].location
1.9 + def get_body_block(self):
1.10 + return self.get_instantiator().blocks[0]
1.11
1.12 # Namespace-related methods.
1.13
1.14 @@ -975,8 +975,8 @@
1.15 )
1.16 ]
1.17
1.18 - def get_direct_invocation_location(self):
1.19 - return self.body_block.location
1.20 + def get_body_block(self):
1.21 + return self.body_block
1.22
1.23 # Namespace-related methods.
1.24
2.1 --- a/micropython/rsvp.py Sun May 24 19:03:03 2009 +0200
2.2 +++ b/micropython/rsvp.py Sun May 24 20:28:56 2009 +0200
2.3 @@ -136,7 +136,7 @@
2.4 return "%s(%r) # %r" % (self.__class__.__name__, self.get_operand(), name(self.attr))
2.5
2.6 def get_operand(self):
2.7 - return self.attr.get_direct_invocation_location()
2.8 + return self.attr.get_body_block().location
2.9
2.10 Target = TargetInstruction
2.11