From ed7d61d5aff63bff96c9176e7be1c7f92a993150 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 20 Oct 2010 10:51:51 -0400 Subject: [PATCH] Try to beat the URL deletion method into working. --- freshmeat-submit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freshmeat-submit b/freshmeat-submit index 20085d4..43dc884 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -153,11 +153,11 @@ class FreshmeatSession: "POST", {"url" : {"label": label, "location" : url}}) # Delete URLs that weren't in the update list - remove = set(permadict.keys()) - set(lambda x: x[0], urlassoc) + remove = set(permadict.keys()) - set(map(lambda x: x[0], urlassoc)) for label in remove: self.edit_request("projects/%s/urls/%s.json?auth_code=%s" % (self.permalink, permadict[label], self.auth), - "DELETE") + "DELETE", {}) class FreshmeatMetadataFactory: "Factory class for producing Freshmeat records in JSON." freshmeat_field_map = ( -- 2.43.0