diff options
author | Matej Stuchlik <mstuchli@redhat.com> | 2015-06-19 07:41:21 +0200 |
---|---|---|
committer | Matej Stuchlik <mstuchli@redhat.com> | 2015-06-19 07:41:21 +0200 |
commit | 2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71 (patch) | |
tree | 4069b0081d6490198bbb633cc85ae62a6a89dc53 /00155-avoid-ctypes-thunks.patch | |
parent | f5845b442d5e3c252df4de7d56bbafe3e8737613 (diff) | |
download | python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.tar.gz python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.tar.xz python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.zip |
Initial import (#1219411)
Diffstat (limited to '00155-avoid-ctypes-thunks.patch')
-rw-r--r-- | 00155-avoid-ctypes-thunks.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/00155-avoid-ctypes-thunks.patch b/00155-avoid-ctypes-thunks.patch new file mode 100644 index 0000000..f03890e --- /dev/null +++ b/00155-avoid-ctypes-thunks.patch @@ -0,0 +1,15 @@ +diff -up Python-3.2.3/Lib/ctypes/__init__.py.rhbz814391 Python-3.2.3/Lib/ctypes/__init__.py +--- Python-3.2.3/Lib/ctypes/__init__.py.rhbz814391 2012-04-20 15:12:49.017867692 -0400 ++++ Python-3.2.3/Lib/ctypes/__init__.py 2012-04-20 15:15:09.501111408 -0400 +@@ -275,11 +275,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 |