1 # -*- coding: utf-8 -*-
3 # kate: space-indent on; indent-width 2; mixedindent off; indent-mode python;
5 # Copyright (C) 2009 Amand 'alrj' Tihon <amand.tihon@alrj.org>
7 # This file is part of bold, the Byte Optimized Linker.
9 # You can redistribute this file and/or modify it under the terms of the
10 # GNU Lesser General Public License as published by the Free Software
11 # Foundation, version 2.1.
13 from array import array
16 class BinArray(array):
17 """A specialized array that contains bytes"""
18 def __new__(cls, data=None):
20 return array.__new__(BinArray, "B", data)
22 return array.__new__(BinArray, "B")