diff MoinMoin/action/edit.py @ 1866:0194beaf511e

reduce reduce, filter and map usage
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 10 Mar 2007 19:20:19 +0100
parents ed44b93599b5
children 64507f46beb2
line wrap: on
line diff
--- a/MoinMoin/action/edit.py	Fri Mar 09 00:56:44 2007 +0100
+++ b/MoinMoin/action/edit.py	Sat Mar 10 19:20:19 2007 +0100
@@ -118,7 +118,7 @@
 
         # Add category separator if last non-empty line contains
         # non-categories.
-        lines = filter(None, savetext.splitlines())
+        lines = [line for line in savetext.splitlines() if line]
         if lines:
 
             #TODO: this code is broken, will not work for extended links