meld r1261 - trunk
- From: vincele svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1261 - trunk
- Date: Sat, 14 Mar 2009 13:52:06 +0000 (UTC)
Author: vincele
Date: Sat Mar 14 13:52:05 2009
New Revision: 1261
URL: http://svn.gnome.org/viewvc/meld?rev=1261&view=rev
Log:
Remove undefined variable usage, and unused parameter
Modified:
trunk/dirdiff.py
Modified: trunk/dirdiff.py
==============================================================================
--- trunk/dirdiff.py (original)
+++ trunk/dirdiff.py Sat Mar 14 13:52:05 2009
@@ -431,12 +431,12 @@
% "\n".join( self.bad ), self.parent )
keys = self.items.keys()
keys.sort()
- def fixup(key, tuples): # replace None with a usable label
+ def fixup(tuples): # replace None with a usable label
def first_nonempty(seq):
for s in seq:
if s: return s
- return tuple([ t or first_nonempty(tuples) or k for t in tuples ])
- return [ fixup(k, self.items[k]) for k in keys ]
+ return tuple([t or first_nonempty(tuples) for t in tuples])
+ return [fixup(self.items[k]) for k in keys]
accumdirs = accum(self, roots)
accumfiles = accum(self, roots)
for pane, root in enumerate(roots):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]