# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ U{array} adapter module. Will convert all array.array instances to a python list before encoding. All type information is lost (but degrades nicely). @since: 0.5 """ import array import pyamf from pyamf.adapters import util if hasattr(array, 'ArrayType'): pyamf.add_type(array.ArrayType, util.to_list)