aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-05-26 06:21:13 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-05-26 06:21:13 +0000
commit75eb33b2e5ee9b8b30535449f6876b61dedf40c3 (patch)
tree6f3fd32ec7194dfefaa5914f0a661f7202169ba3
parentab11987d03f42ecd69e69b9e3d183ece66c09b63 (diff)
downloadfetchmail-75eb33b2e5ee9b8b30535449f6876b61dedf40c3.tar.gz
fetchmail-75eb33b2e5ee9b8b30535449f6876b61dedf40c3.tar.bz2
fetchmail-75eb33b2e5ee9b8b30535449f6876b61dedf40c3.zip
Currying eliminates a method declaration.
svn path=/trunk/; revision=1846
-rwxr-xr-xfetchmailconf7
1 files changed, 3 insertions, 4 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 8ef9092b..807e6b4f 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -552,12 +552,11 @@ class ConfigurationEdit(Frame):
bd=2).pack(side=TOP, pady=10)
ListEdit('New Server:',
map(lambda x: x.pollname, self.configuration.servers),
- self.editSite, lf, remotehelp)
+ lambda site, m=self.mode, s=self.configuration.servers:
+ ServerEdit(m, site, s, Toplevel()),
+ lf, remotehelp)
lf.pack(fill=X)
- def editSite(self, site):
- ServerEdit(self.mode, site, self.configuration.servers, Toplevel())
-
def nosave(self):
if ConfirmQuit(self, self.mode + " configuration editor"):
self.quit()