meld r1199 - trunk
- From: vincele svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1199 - trunk
- Date: Mon, 2 Mar 2009 21:12:03 +0000 (UTC)
Author: vincele
Date: Mon Mar 2 21:12:03 2009
New Revision: 1199
URL: http://svn.gnome.org/viewvc/meld?rev=1199&view=rev
Log:
Don't use a list comprehension where a simple loop is sufficient.
Was: pylint reported "statement seems to have no effect"
Modified:
trunk/filediff.py
Modified: trunk/filediff.py
==============================================================================
--- trunk/filediff.py (original)
+++ trunk/filediff.py Mon Mar 2 21:12:03 2009
@@ -314,7 +314,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]