[Python-modules-commits] [pycurl] 06/09: upstream issue 210
Barry Warsaw
barry at moszumanska.debian.org
Mon Apr 27 20:26:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
barry pushed a commit to branch master
in repository pycurl.
commit 7e232eecf5078c81d910a03717b440a5e2af7416
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 e521de4..2a7d361 100644
--- a/src/easy.c
+++ b/src/easy.c
@@ -929,7 +929,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