plcopen/structures.py
changeset 2448 1367b796e129
parent 2441 c553769a65af
child 2453 9900a8df922f
--- 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):