From: Eric S. Raymond Date: Wed, 20 Oct 2010 14:51:51 +0000 (-0400) Subject: Try to beat the URL deletion method into working. X-Git-Tag: 2.1~5 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=ed7d61d5aff63bff96c9176e7be1c7f92a993150;p=freecode-submit.git Try to beat the URL deletion method into working. --- 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 = (