Blame SOURCES/00155-avoid-ctypes-thunks.patch

1163ee
diff -up Python-3.2.3/Lib/ctypes/__init__.py.rhbz814391 Python-3.2.3/Lib/ctypes/__init__.py
1163ee
--- Python-3.2.3/Lib/ctypes/__init__.py.rhbz814391	2012-04-20 15:12:49.017867692 -0400
1163ee
+++ Python-3.2.3/Lib/ctypes/__init__.py	2012-04-20 15:15:09.501111408 -0400
1163ee
@@ -275,11 +275,6 @@ def _reset_cache():
1163ee
     # _SimpleCData.c_char_p_from_param
1163ee
     POINTER(c_char).from_param = c_char_p.from_param
1163ee
     _pointer_type_cache[None] = c_void_p
1163ee
-    # XXX for whatever reasons, creating the first instance of a callback
1163ee
-    # function is needed for the unittests on Win64 to succeed.  This MAY
1163ee
-    # be a compiler bug, since the problem occurs only when _ctypes is
1163ee
-    # compiled with the MS SDK compiler.  Or an uninitialized variable?
1163ee
-    CFUNCTYPE(c_int)(lambda: None)
1163ee
 
1163ee
 def create_unicode_buffer(init, size=None):
1163ee
     """create_unicode_buffer(aString) -> character array