[libxml2] python: remove single use of _PyVerify_fd



commit d910e99c322a0895955038c700471e9b1fd91fa6
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Mon Nov 6 16:20:25 2017 +0000

    python: remove single use of _PyVerify_fd
    
    _PyVerify_fd disappeared from python with:
    
      https://hg.python.org/cpython/rev/e88e2049b793
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776815

 python/types.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/python/types.c b/python/types.c
index f237677..124af56 100644
--- a/python/types.c
+++ b/python/types.c
@@ -31,8 +31,6 @@ libxml_PyFileGet(PyObject *f) {
     const char *mode;
 
     fd = PyObject_AsFileDescriptor(f);
-    if (!_PyVerify_fd(fd))
-        return(NULL);
     /*
      * Get the flags on the fd to understand how it was opened
      */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]