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