[PATCH] Remove complex code
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list gnome org
- Subject: [PATCH] Remove complex code
- Date: Thu, 26 Feb 2009 22:03:03 +0100
Pylint warned about the 'b' variable being unused.
I think the patch is a noop, modulo potential side effects that I couldn't see.
It certainly looks much simpler, and better express the intent, if I'm
not mistaken.
--
Vincent Legoll
Index: filediff.py
===================================================================
--- filediff.py (révision 1182)
+++ filediff.py (copie de travail)
@@ -934,8 +934,7 @@
self.set_files(files)
def on_refresh_activate(self, *extra):
- files = [None for b in self.bufferdata[:self.num_panes] ]
- self.set_files(files)
+ self.set_files([None] * self.num_panes)
def queue_draw(self, junk=None):
for i in range(self.num_panes-1):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]