diff options
author | Fedora Python maintainers <python-devel@lists.fedoraproject.org> | 2020-07-15 15:38:12 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2020-09-29 15:59:05 +0200 |
commit | 37f6fef219c7c3d8d4b3eb9d57c93a43c14f64c1 (patch) | |
tree | d213628f64a383689373e90b3526158932f90892 | |
parent | b4f5b3de3f77729901d4ae35f4ea001e7ad73199 (diff) | |
download | cpython-git-37f6fef219c7c3d8d4b3eb9d57c93a43c14f64c1.tar.gz |
00155-avoid-ctypes-thunks.patch
00155 #
Avoid allocating thunks in ctypes unless absolutely necessary, to avoid
generating SELinux denials on "import ctypes" and "import uuid" when
embedding Python within httpd (rhbz#814391)
-rw-r--r-- | Lib/ctypes/__init__.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/ctypes/__init__.py b/Lib/ctypes/__init__.py index 88c85ff388..f4736f2138 100644 --- a/Lib/ctypes/__init__.py +++ b/Lib/ctypes/__init__.py @@ -269,11 +269,6 @@ def _reset_cache(): # _SimpleCData.c_char_p_from_param POINTER(c_char).from_param = c_char_p.from_param _pointer_type_cache[None] = c_void_p - # XXX for whatever reasons, creating the first instance of a callback - # function is needed for the unittests on Win64 to succeed. This MAY - # be a compiler bug, since the problem occurs only when _ctypes is - # compiled with the MS SDK compiler. Or an uninitialized variable? - CFUNCTYPE(c_int)(lambda: None) try: from _ctypes import set_conversion_mode |