editors/CodeFileEditor.py
changeset 2434 07f48018b6f5
parent 2432 dbc065a2f7a5
child 2437 105c20fdeb19
--- a/editors/CodeFileEditor.py	Thu Oct 04 12:09:23 2018 +0300
+++ b/editors/CodeFileEditor.py	Thu Oct 04 17:24:40 2018 +0300
@@ -25,6 +25,7 @@
 
 from __future__ import absolute_import
 import re
+from builtins import str as text
 
 import wx
 import wx.grid
@@ -32,6 +33,7 @@
 import wx.lib.buttons
 from six.moves import xrange
 
+
 from plcopen.plcopen import TestTextElement
 from plcopen.structures import TestIdentifier, IEC_KEYWORDS, DefaultType
 from controls import CustomGrid, CustomTable
@@ -630,7 +632,7 @@
             if col == 0:
                 return row + 1
             else:
-                return unicode(self.data[row].get(self.GetColLabelValue(col, False), ""))
+                return text(self.data[row].get(self.GetColLabelValue(col, False), ""))
 
     def _updateColAttrs(self, grid):
         """