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/composer.py

    r142 r198  
    2222        if not self.check_event(StreamEndEvent): 
    2323            return self.compose_document() 
    24  
    25     def __iter__(self): 
    26         # Iterator protocol. 
    27         while not self.check_event(StreamEndEvent): 
    28             yield self.compose_document() 
    2924 
    3025    def compose_document(self): 
Note: See TracChangeset for help on using the changeset viewer.