Changeset 3643:88cda3a91167 in livinglogic.python.xist

Show
Ignore:
Timestamp:
12/16/08 11:48:18 (11 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Let the stack handler decide what to return from enter().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/xsc.py

    r3596 r3643  
    105105            self.stack[-1](node) 
    106106        self.stack.append(node) 
     107        return node 
    107108 
    108109    def exit(self): 
     
    12851286 
    12861287    def __enter__(self): 
    1287         threadlocalnodehandler.handler.enter(self) 
    1288         return self 
     1288        return threadlocalnodehandler.handler.enter(self) 
    12891289 
    12901290    def __exit__(self, type, value, traceback):