Changeset 68:9bb9eb99726f in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
01/05/09 18:36:39 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Don't yield the iterators.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh_mergelogs.py

    r67 r68  
    3535    while heap: 
    3636        _, idx, item, itr = heap[0] 
    37         yield item, itr 
     37        yield item 
    3838        try: 
    3939            item = itr.next() 
     
    4545openedfiles = [reallines(open(filename)) for filename in sys.argv[1:]] 
    4646 
    47 for line, itr in mergesort(openedfiles, key=apachedate2utc): 
     47for line in mergesort(openedfiles, key=apachedate2utc): 
    4848    sys.stdout.write(line) 
    4949sys.stdout.flush()