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

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