Changeset 5552

Show
Ignore:
Timestamp:
02/24/10 18:59:32 (3 years ago)
Author:
nopper
Message:

Ignore empty lines

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pm/trunk/plugins/dns-cache-snoop/sources/main.py

    r5521 r5552  
    140140 
    141141        for row in self.store: 
    142             out += "[%s] %s (%d)\n" % (row[0] and 'YES' or 'NO', 
     142            out += "[%s] %s (%d)\n" % (row[0] and '+' or '-', 
    143143                                       row[1], row[2]) 
    144144 
     
    216216 
    217217                for line in contents.splitlines(): 
    218                     self.store.append((False, line.strip(), 0)) 
     218                    line = line.strip() 
     219 
     220                    if line: 
     221                        self.store.append((False, line, 0)) 
    219222 
    220223        dialog.hide()