[Python-modules-commits] [pycurl] 01/04: upstream issue 210

Barry Warsaw barry at moszumanska.debian.org
Tue Oct 14 20:55:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository pycurl.

commit 9456098cc34953157aceccb4b235cf8201a900fe
Author: Barry Warsaw <barry at python.org>
Date:   Tue Oct 14 16:25:57 2014 -0400

    upstream issue 210
---
 src/easy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/easy.c b/src/easy.c
index 6f1ba1d..fe52b18 100644
--- a/src/easy.c
+++ b/src/easy.c
@@ -926,7 +926,11 @@ debug_callback(CURL *curlobj, curl_infotype type,
     }
 
     /* run callback */
+#if PY_MAJOR_VERSION >= 3
+    arglist = Py_BuildValue("(iy#)", (int)type, buffer, (int)total_size);
+#else
     arglist = Py_BuildValue("(is#)", (int)type, buffer, (int)total_size);
+#endif
     if (arglist == NULL)
         goto verbose_error;
     result = PyEval_CallObject(self->debug_cb, arglist);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pycurl.git



More information about the Python-modules-commits mailing list