67a8a3eecdcd3db23fde033b1a67a70bab6a9ec4
[openwrt/svn-archive/archive.git] / lang / python / patches / 090-fix-ctypes.patch
1 Index: Lib/ctypes/__init__.py
2 ===================================================================
3 --- a/Lib/ctypes/__init__.py (revision 77004)
4 +++ b/Lib/ctypes/__init__.py (working copy)
5 @@ -538,9 +538,3 @@
6 elif sizeof(kind) == 4: c_uint32 = kind
7 elif sizeof(kind) == 8: c_uint64 = kind
8 del(kind)
9 -
10 -# XXX for whatever reasons, creating the first instance of a callback
11 -# function is needed for the unittests on Win64 to succeed. This MAY
12 -# be a compiler bug, since the problem occurs only when _ctypes is
13 -# compiled with the MS SDK compiler. Or an uninitialized variable?
14 -CFUNCTYPE(c_int)(lambda: None)