summaryrefslogtreecommitdiff
path: root/libunbound/python/libunbound.i
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2015-09-17 15:21:27 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2015-09-17 15:21:27 +0000
commitaf3dabbf15fa4d0e7e45a43fbf9a2195edfa941c (patch)
treeee00f42bccdce0e3581d05a17f58bb7429f0ceda /libunbound/python/libunbound.i
parent0ea28240053521a309698413a426b4d730a3d60c (diff)
Notes
Diffstat (limited to 'libunbound/python/libunbound.i')
-rw-r--r--libunbound/python/libunbound.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/libunbound/python/libunbound.i b/libunbound/python/libunbound.i
index 1bef79f22094..3c0e45b7db42 100644
--- a/libunbound/python/libunbound.i
+++ b/libunbound/python/libunbound.i
@@ -60,7 +60,11 @@
%}
//%include "doc.i"
+#if PY_MAJOR_VERSION >= 3
+%include "file_py3.i" // python 3 FILE *
+#else
%include "file.i"
+#endif
%feature("docstring") strerror "Convert error value to a human readable string."