]> granicus.if.org Git - python/commitdiff
Issue #12142: Fixed reference cycle when importing ctypes
authorMeador Inge <meadori@gmail.com>
Sun, 5 Feb 2012 06:27:40 +0000 (00:27 -0600)
committerMeador Inge <meadori@gmail.com>
Sun, 5 Feb 2012 06:27:40 +0000 (00:27 -0600)
Lib/ctypes/_endian.py

index e6b8556954f7dd9a29575072e312ac2af8e55042..f80e675aaf273184d91f532f1bb9fe8cdd074443 100644 (file)
@@ -4,7 +4,7 @@
 import sys
 from ctypes import *
 
-_array_type = type(c_int * 3)
+_array_type = type(Array)
 
 def _other_endian(typ):
     """Return the type with the 'other' byte order.  Simple types like