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

6e8c2f
diff -up Python-2.7.3/Lib/ctypes/__init__.py.rhbz814391 Python-2.7.3/Lib/ctypes/__init__.py
6e8c2f
--- Python-2.7.3/Lib/ctypes/__init__.py.rhbz814391	2012-04-20 14:51:19.390990244 -0400
6e8c2f
+++ Python-2.7.3/Lib/ctypes/__init__.py	2012-04-20 14:51:45.141668316 -0400
6e8c2f
@@ -272,11 +272,6 @@ def _reset_cache():
6e8c2f
     # _SimpleCData.c_char_p_from_param
6e8c2f
     POINTER(c_char).from_param = c_char_p.from_param
6e8c2f
     _pointer_type_cache[None] = c_void_p
6e8c2f
-    # XXX for whatever reasons, creating the first instance of a callback
6e8c2f
-    # function is needed for the unittests on Win64 to succeed.  This MAY
6e8c2f
-    # be a compiler bug, since the problem occurs only when _ctypes is
6e8c2f
-    # compiled with the MS SDK compiler.  Or an uninitialized variable?
6e8c2f
-    CFUNCTYPE(c_int)(lambda: None)
6e8c2f
 
6e8c2f
 try:
6e8c2f
     from _ctypes import set_conversion_mode