diff MoinMoin/util/diff_text.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 6488692b1eb8
children bb2e053067fb
line wrap: on
line diff
--- a/MoinMoin/util/diff_text.py	Fri Mar 09 00:56:44 2007 +0100
+++ b/MoinMoin/util/diff_text.py	Sat Mar 10 19:20:19 2007 +0100
@@ -33,10 +33,10 @@
             break
     if not changed: return []
 
-    if not "we want the unchanged lines, too":
-        if "no questionmark lines":
-            lines = filter(lambda line: line[0] != '?', lines)
-        return lines
+#    if not "we want the unchanged lines, too":
+#        if "no questionmark lines":
+#            lines = [line for line in lines if line[0] != '?']
+#        return lines
 
 
     # calculate the hunks and remove the unchanged lines between them