summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-12-18 13:47:21 (GMT)
committerGitHub <noreply@github.com>2018-12-18 13:47:21 (GMT)
commite6b247c8e524dbe5fc03b3492f628d0d5348bc49 (patch)
treed3dd72491e4e0920bc5ca7d757f81cbe59afd661 /Lib/ctypes
parent3fcc1e08db6fb7e17acc4a8f63be3e42f52f094b (diff)
downloadcpython-e6b247c8e524dbe5fc03b3492f628d0d5348bc49.zip
cpython-e6b247c8e524dbe5fc03b3492f628d0d5348bc49.tar.gz
cpython-e6b247c8e524dbe5fc03b3492f628d0d5348bc49.tar.bz2
bpo-35523: Remove ctypes callback workaround (GH-11211)
Remove ctypes callback workaround: no longer create a callback at startup. Avoid SELinux alert on "import ctypes" and "import uuid".
Diffstat (limited to 'Lib/ctypes')
-rw-r--r--Lib/ctypes/__init__.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/ctypes/__init__.py b/Lib/ctypes/__init__.py
index 6146773..5f78bed 100644
--- a/Lib/ctypes/__init__.py
+++ b/Lib/ctypes/__init__.py
@@ -266,11 +266,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)
def create_unicode_buffer(init, size=None):
"""create_unicode_buffer(aString) -> character array