etherlab/etherlab.py
changeset 2434 07f48018b6f5
parent 2425 68e7da937162
child 2643 b98d9e08231f
--- a/etherlab/etherlab.py	Thu Oct 04 12:09:23 2018 +0300
+++ b/etherlab/etherlab.py	Thu Oct 04 17:24:40 2018 +0300
@@ -13,8 +13,9 @@
 import os
 import shutil
 import csv
+from builtins import str as text
+
 from lxml import etree
-
 import wx
 
 from xmlclass import *
@@ -227,7 +228,7 @@
                         self.GetCTRoot().logger.write_warning(
                             XSDSchemaErrorMessage % (filepath + error))
                 except Exception as exc:
-                    self.modules_infos, error = None, unicode(exc)
+                    self.modules_infos, error = None, text(exc)
                 xmlfile.close()
 
                 if self.modules_infos is not None: