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