xzyang / rpms / libxml2

Forked from rpms/libxml2 3 years ago
Clone

Blame SOURCES/libxml2-2.9.4-remove-pyverify_fd.patch

6f3f5b
diff -Nur libxml2-2.9.4.orig/python/types.c libxml2-2.9.4/python/types.c
6f3f5b
--- libxml2-2.9.4.orig/python/types.c	2016-02-09 03:17:33.000000000 -0700
6f3f5b
+++ libxml2-2.9.4/python/types.c	2016-12-21 12:34:06.755650986 -0700
6f3f5b
@@ -31,8 +31,6 @@
6f3f5b
     const char *mode;
6f3f5b
 
6f3f5b
     fd = PyObject_AsFileDescriptor(f);
6f3f5b
-    if (!_PyVerify_fd(fd))
6f3f5b
-        return(NULL);
6f3f5b
     /*
6f3f5b
      * Get the flags on the fd to understand how it was opened
6f3f5b
      */