]> thyrsus.com Git - freecode-submit.git/commitdiff
Try to beat the URL deletion method into working.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 14:51:51 +0000 (10:51 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 14:51:51 +0000 (10:51 -0400)
freshmeat-submit

index 20085d4351c15b3d8cccb52876ed678d7fd87059..43dc884dcd39380c8762d72f8d946a31be90a2cb 100755 (executable)
@@ -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 = (