Ignore:
Timestamp:
07/03/06 07:29:45 (8 years ago)
Author:
xi
Message:

To make porting easier, rewrite Parser not using generators.

Fix handling of unexpected block mapping values, like

: foo

Remove obsolete and unused __iter__ functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/constructor.py

    r195 r198  
    3939        if self.check_node(): 
    4040            return self.construct_document(self.get_node()) 
    41  
    42     def __iter__(self): 
    43         # Iterator protocol. 
    44         while self.check_node(): 
    45             yield self.construct_document(self.get_node()) 
    4641 
    4742    def construct_document(self, node): 
Note: See TracChangeset for help on using the changeset viewer.