Changeset 377 for pyyaml/trunk/tests

Show
Ignore:
Timestamp:
05/29/11 22:51:30 (12 months ago)
Author:
xi
Message:

Clear cyclic references in the parser and the emitter to avoid extra GC calls.

Location:
pyyaml/trunk/tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests/lib/canonical.py

    r330 r377  
    211211        self.events = [] 
    212212        self.parsed = False 
     213 
     214    def dispose(self): 
     215        pass 
    213216 
    214217    # stream: STREAM-START document* STREAM-END 
  • pyyaml/trunk/tests/lib3/canonical.py

    r330 r377  
    212212        self.events = [] 
    213213        self.parsed = False 
     214 
     215    def dispose(self): 
     216        pass 
    214217 
    215218    # stream: STREAM-START document* STREAM-END