meld r1280 - trunk



Author: kaiw
Date: Fri Mar 20 07:36:14 2009
New Revision: 1280
URL: http://svn.gnome.org/viewvc/meld?rev=1280&view=rev

Log:
Remove ternary use for python 2.4 compat - Bug 575713 (Tom Parker)


Modified:
   trunk/filediff.py

Modified: trunk/filediff.py
==============================================================================
--- trunk/filediff.py	(original)
+++ trunk/filediff.py	Fri Mar 20 07:36:14 2009
@@ -874,7 +874,10 @@
         for i in range(self.num_panes):
             if self.textview[i].is_focus():
                 return self.textview[i]
-        return self.textview[1] if len(self.textview)>1 else self.textview[0]
+        if len(self.textview) > 1:
+            return self.textview[1]
+        else:
+            return self.textview[0]
 
     def copy_selected(self, direction):
         assert direction in (-1,1)



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