--- a/plcopen/structures.py Thu Oct 11 09:41:15 2018 +0300
+++ b/plcopen/structures.py Thu Oct 11 10:01:12 2018 +0300
@@ -24,7 +24,6 @@
from __future__ import absolute_import
-import string
import re
from collections import OrderedDict
@@ -104,7 +103,10 @@
"""
take a .csv file and translate it it a "csv_table"
"""
- return [map(string.strip, line.split(';')) for line in file.readlines()]
+ table = [[column.strip()
+ for column in line.split(';')]
+ for line in file.readlines()]
+ return table
def find_section(section_name, table):