Changeset 67:d7c349e2bb2c in livinglogic.python.tipimaid

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

Whe don't have to protect against key being None any more.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh_mergelogs.py

    r66 r67  
    2727        try: 
    2828            item = itr.next() 
    29             keyitem = key(item) 
    30             while keyitem is None: 
    31                 sys.stderr.write("Skipping malformed line %s" % item) 
    32                 sys.stderr.flush() 
    33                 item = itr.next() 
    34                 keyitem = key(item) 
    35             toadd = (keyitem, i, item, itr) 
     29            toadd = (key(item), i, item, itr) 
    3630            heap.append(toadd) 
    3731        except StopIteration: