]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12142: Fixed reference cycle when importing ctypes
authorMeador Inge <meadori@gmail.com>
Sun, 5 Feb 2012 02:36:48 +0000 (20:36 -0600)
committerMeador Inge <meadori@gmail.com>
Sun, 5 Feb 2012 02:36:48 +0000 (20:36 -0600)
Lib/ctypes/_endian.py

index 721b0d1c9e3092350ebd860a6666e8e9c80cd8c6..dae65fc2152d7e66a6cad1247e1c99bc577b6119 100644 (file)
@@ -1,7 +1,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