--- a/py_ext/PythonFileCTNMixin.py Thu Oct 04 12:09:23 2018 +0300
+++ b/py_ext/PythonFileCTNMixin.py Thu Oct 04 17:24:40 2018 +0300
@@ -27,8 +27,9 @@
from __future__ import absolute_import
import os
import re
+from builtins import str as text
+
import util.paths as paths
-
from xmlclass import GenerateParserFromXSD
from CodeFileTreeNode import CodeFile
@@ -74,7 +75,7 @@
self.CreateCodeFileBuffer(False)
self.OnCTNSave()
except Exception as exc:
- error = unicode(exc)
+ error = text(exc)
if error is not None:
self.GetCTRoot().logger.write_error(