IDEFrame.py
changeset 2434 07f48018b6f5
parent 2432 dbc065a2f7a5
child 2437 105c20fdeb19
--- a/IDEFrame.py	Thu Oct 04 12:09:23 2018 +0300
+++ b/IDEFrame.py	Thu Oct 04 17:24:40 2018 +0300
@@ -26,6 +26,7 @@
 import sys
 from types import TupleType
 import base64
+from builtins import str as text
 
 import wx
 import wx.grid
@@ -108,7 +109,7 @@
 def DecodeFileSystemPath(path, is_base64=True):
     if is_base64:
         path = base64.decodestring(path)
-    return unicode(path, sys.getfilesystemencoding())
+    return text(path, sys.getfilesystemencoding())
 
 
 def AppendMenu(parent, help, id, kind, text):