X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FPyCurl.py;h=d6611484856a84b07a81fd73840cb65f938a357b;hb=ea599807fccfe0890f3fa0c49a085a72426111f5;hp=e020882304a99bef9be63b93d943a25c1319e620;hpb=b5f0bf5f6e900fc383d9251a90d5476bfd48c0cd;p=plcapi.git diff --git a/PLC/PyCurl.py b/PLC/PyCurl.py index e020882..d661148 100644 --- a/PLC/PyCurl.py +++ b/PLC/PyCurl.py @@ -6,6 +6,7 @@ # Copyright (C) 2006 The Trustees of Princeton University # # $Id$ +# $URL$ # import os @@ -51,7 +52,7 @@ class PyCurlTransport(xmlrpclib.Transport): self.body = "" def body(buf): self.body += buf - self.curl.setopt(pycurl.WRITEFUNCTION, body) + self.curl.setopt(pycurl.WRITEFUNCTION, body) def request(self, host, handler, request_body, verbose = 1): # Set verbosity @@ -73,7 +74,7 @@ class PyCurlTransport(xmlrpclib.Transport): if errcode == 60: raise Exception, "PyCurl: SSL certificate validation failed" elif errcode != 200: - raise Exception, "PyCurl: HTTP error %d -- %r" % (errcode,errmsg) + raise Exception, "PyCurl: HTTP error %d -- %r" % (errcode,errmsg) # Parse response p, u = self.getparser()