diff options
Diffstat (limited to 'libunbound/python/libunbound.i')
| -rw-r--r-- | libunbound/python/libunbound.i | 4 |
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." |
