meld r1280 - trunk
- From: kaiw svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1280 - trunk
- Date: Fri, 20 Mar 2009 07:36:14 +0000 (UTC)
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]