Changeset 71:e6b17ed1f716 in livinglogic.python.tipimaid

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

() for tuple unpacking.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh_mergelogs.py

    r70 r71  
    2727def mergesort(list_of_lists, key): 
    2828    heap = [] 
    29     for i, itr in enumerate(iter(pl) for pl in list_of_lists): 
     29    for (i, itr) in enumerate(iter(pl) for pl in list_of_lists): 
    3030        try: 
    3131            item = itr.next() 
     
    3737 
    3838    while heap: 
    39         _, idx, item, itr = heap[0] 
     39        (_, idx, item, itr) = heap[0] 
    4040        yield item 
    4141        try: