util/paths.py
changeset 2434 07f48018b6f5
parent 1881 091005ec69c4
child 2736 a81b72ef156c
--- a/util/paths.py	Thu Oct 04 12:09:23 2018 +0300
+++ b/util/paths.py	Thu Oct 04 17:24:40 2018 +0300
@@ -26,11 +26,12 @@
 from __future__ import absolute_import
 import os
 import sys
+from builtins import str as text
 
 
 def AbsFile(file):
     if isinstance(file, str):
-        file = unicode(file, sys.getfilesystemencoding())
+        file = text(file, sys.getfilesystemencoding())
     return file