Public bug reported:

The recent patch uploaded raring fixing a python3 issue is breaking
usage of WRITEFUNCTION in python 2.X.
http://launchpadlibrarian.net/129472394/pycurl_7.19.0-5ubuntu4_7.19.0-5ubuntu5.diff.gz
is the patch.

The following script fails with "SystemError: bad format char passed to
Py_BuildValue":

import pycurl
from StringIO import StringIO

body = StringIO()

curl = pycurl.Curl()
curl.setopt(pycurl.URL, "http://www.ubuntu.com/";)
curl.setopt(pycurl.WRITEFUNCTION, body.write)
curl.perform()

print body.getvalue()

** Affects: pycurl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1108161

Title:
  7.19.0-5ubuntu5 is broken on python 2.X

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pycurl/+bug/1108161/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to