Changeset - 1812165b5acc
[Not reviewed]
default
0 1 0
Drew Perttula - 12 years ago 2013-06-06 04:16:27
drewp@bigasterisk.com
clearer name for sendPatch callback function
Ignore-this: 4cd1a220a9052caf9201879d4d9f1bcc
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/rdfdb/patchsender.py
Show inline comments
 
@@ -89,7 +89,7 @@ def sendPatch(putUri, patch, **kw):
 
    """
 
    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 @@ def sendPatch(putUri, patch, **kw):
 
        method='PUT',
 
        headers={'Content-Type': ['application/json']},
 
        postdata=body,
 
        ).addCallback(ok)
 
        ).addCallback(putDone)
0 comments (0 inline, 0 general)