meld r1258 - trunk



Author: vincele
Date: Thu Mar 12 20:16:35 2009
New Revision: 1258
URL: http://svn.gnome.org/viewvc/meld?rev=1258&view=rev

Log:
There's no need to store the list in a temporary variable


Modified:
   trunk/filediff.py

Modified: trunk/filediff.py
==============================================================================
--- trunk/filediff.py	(original)
+++ trunk/filediff.py	Thu Mar 12 20:16:35 2009
@@ -342,8 +342,7 @@
                 l.queue_draw_area(a[2]-w, 0, w, a[3])
 
     def is_modified(self):
-        state = [b.modified for b in self.bufferdata]
-        return 1 in state
+        return 1 in [b.modified for b in self.bufferdata]
 
     def _get_pane_label(self, i):
         return self.bufferdata[i].label or "<unnamed>"



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