[PATCH] Statement seems to have no effect
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list gnome org
- Subject: [PATCH] Statement seems to have no effect
- Date: Thu, 26 Feb 2009 22:19:02 +0100
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]