From 75eb33b2e5ee9b8b30535449f6876b61dedf40c3 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 26 May 1998 06:21:13 +0000 Subject: Currying eliminates a method declaration. svn path=/trunk/; revision=1846 --- fetchmailconf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'fetchmailconf') 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() -- cgit v1.2.3