branch | python3 |
changeset 3752 | 9f6f46dbe3ae |
parent 3750 | f62625418bff |
child 3760 | 7270e7e092f8 |
--- a/util/paths.py Fri Oct 28 13:06:52 2022 +0800 +++ b/util/paths.py Fri Oct 28 14:07:13 2022 +0800 @@ -23,14 +23,12 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - import os import sys -from builtins import str as text def AbsFile(file): if isinstance(file, str): - file = text(file, sys.getfilesystemencoding()) + file = str(file, sys.getfilesystemencoding()) return file