[PATCH] Statement seems to have no effect



Pylint reported ${SUBJECT}, indeed, no need for a list
comprehension here, a simple loop is sufficient.

-- 
Vincent Legoll
Index: filediff.py
===================================================================
--- filediff.py	(révision 1182)
+++ filediff.py	(copie de travail)
@@ -313,7 +313,8 @@
         elif key == "regexes":
             self._update_regexes()
         elif key == "edit_wrap_lines":
-            [t.set_wrap_mode( self.prefs.edit_wrap_lines ) for t in self.textview]
+            for t in self.textview:
+                t.set_wrap_mode(self.prefs.edit_wrap_lines)
         elif key == "spaces_instead_of_tabs":
             if sourceview_available:
                 for t in self.textview:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]