changeset 861:1812165b5acc

clearer name for sendPatch callback function Ignore-this: 4cd1a220a9052caf9201879d4d9f1bcc
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 06 Jun 2013 04:16:27 +0000
parents 8189f27679a1
children ee07ea5cd46b
files light9/rdfdb/patchsender.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/light9/rdfdb/patchsender.py	Thu Jun 06 03:39:05 2013 +0000
+++ b/light9/rdfdb/patchsender.py	Thu Jun 06 04:16:27 2013 +0000
@@ -89,7 +89,7 @@
     """
     body = patch.makeJsonRepr(kw)
     log.debug("send body: %r", body)
-    def ok(done):
+    def putDone(done):
         if not str(done.code).startswith('2'):
             raise ValueError("sendPatch request failed %s: %s" % (done.code, done.body))
         log.debug("sendPatch finished, response: %s" % done.body)
@@ -100,4 +100,4 @@
         method='PUT',
         headers={'Content-Type': ['application/json']},
         postdata=body,
-        ).addCallback(ok)
+        ).addCallback(putDone)