Package: libxml2 / 2.9.4+dfsg1-7

0017-python-remove-single-use-of-_PyVerify_fd.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Patrick Welche <prlw1@cam.ac.uk>
Date: Mon, 6 Nov 2017 16:20:25 +0000
Subject: python: remove single use of _PyVerify_fd
Origin: https://bugzilla.gnome.org/attachment.cgi?id=363064
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=776815
Bug-Debian: https://bugs.debian.org/878684

_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 file changed, 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
      */
-- 
2.15.0