Changeset 550

Show
Ignore:
Timestamp:
06/10/08 10:57:29 (3 months ago)
Author:
athomas
Message:

Remove redundant use of Node.parser.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cly/trunk/cly/builder.py

    r549 r550  
    569569        if self.with_user_context or \ 
    570570                (self.with_user_context is None and 
    571                  self.parser.with_user_context): 
     571                 context.parser.with_user_context): 
    572572            warnings.warn('with_user_context has been deprecated. Use ' 
    573573                          'with_context and access the user_context attribute.', 
     
    576576        elif self.with_context or \ 
    577577                (self.with_context is None and 
    578                  self.parser.with_context): 
     578                 context.parser.with_context): 
    579579            return self.callback(context, **context.vars) 
    580580        else: 
  • cly/trunk/cly/parser.py

    r547 r550  
    272272        assert isinstance(grammar, Grammar) 
    273273        self._grammar = grammar 
    274         for node in self: 
    275             node.parser = self 
    276274 
    277275    def _get_grammar(self):