equal
deleted
inserted
replaced
21 # You should have received a copy of the GNU General Public License |
21 # You should have received a copy of the GNU General Public License |
22 # along with this program; if not, write to the Free Software |
22 # along with this program; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 |
24 |
25 |
25 |
26 |
|
27 |
|
28 import os |
26 import os |
29 import sys |
27 import sys |
30 import getopt |
28 import getopt |
31 from past.builtins import int |
|
32 from functools import reduce |
29 from functools import reduce |
33 |
30 |
34 # Translation between IEC types and Can Open types |
31 # Translation between IEC types and Can Open types |
35 IECToCOType = { |
32 IECToCOType = { |
36 "BOOL": 0x01, |
33 "BOOL": 0x01, |