meld r1155 - trunk
- From: kaiw svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1155 - trunk
- Date: Sun, 15 Feb 2009 15:47:25 +0000 (UTC)
Author: kaiw
Date: Sun Feb 15 15:47:24 2009
New Revision: 1155
URL: http://svn.gnome.org/viewvc/meld?rev=1155&view=rev
Log:
Use lambdas to avoid redefining the do_nothing function
Modified:
trunk/historyentry.py
Modified: trunk/historyentry.py
==============================================================================
--- trunk/historyentry.py (original)
+++ trunk/historyentry.py Sun Feb 15 15:47:24 2009
@@ -199,9 +199,7 @@
try:
import gconf
except ImportError:
- def do_nothing(self):
- return
-
+ do_nothing = lambda *args: None
for m in ('_save_history', '_load_history', '_get_gconf_client'):
setattr(HistoryEntry, m, do_nothing)
@@ -474,8 +472,6 @@
try:
import gnomevfs
except ImportError:
- def do_nothing(self):
- return
-
+ do_nothing = lambda *args: None
setattr(HistoryFileEntry, '_setup_dnd', do_nothing)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]