dormouse / rpms / python34

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