File python3.6-verify_fd.patch of Package python-libxml2-python
17
1
_PyVerify_fd is a no-op outside of Windows CRT
2
and was dropped from Python 3.6
3
4
Index: libxml2-2.9.5/python/types.c
5
===================================================================
6
--- libxml2-2.9.5.orig/python/types.c
7
+++ libxml2-2.9.5/python/types.c
8
9
const char *mode;
10
11
fd = PyObject_AsFileDescriptor(f);
12
- if (!_PyVerify_fd(fd))
13
- return(NULL);
14
/*
15
* Get the flags on the fd to understand how it was opened
16
*/
17