1
From 9456098cc34953157aceccb4b235cf8201a900fe Mon Sep 17 00:00:00 2001
2
From: Barry Warsaw <barry@python.org>
3
Date: Tue, 14 Oct 2014 16:25:57 -0400
4
Subject: upstream issue 210
5
Bug: https://github.com/pycurl/pycurl/issues/210
9
1 file changed, 4 insertions(+)
11
diff --git a/src/easy.c b/src/easy.c
12
index 6f1ba1d..fe52b18 100644
15
@@ -926,7 +926,11 @@ debug_callback(CURL *curlobj, curl_infotype type,
19
+#if PY_MAJOR_VERSION >= 3
20
+ arglist = Py_BuildValue("(iy#)", (int)type, buffer, (int)total_size);
22
arglist = Py_BuildValue("(is#)", (int)type, buffer, (int)total_size);
26
result = PyEval_CallObject(self->debug_cb, arglist);