# HG changeset patch # User Franz Glasner # Date 1736427961 -3600 # Node ID ed45abb4940f760e6a891f121e69858a9168ce9e # Parent b32b41297893d4bdd61849a9f31f9025642cd8a3 FIX: in util.normalize_filename(): use the 'u"' prefix in the else part for non-byte strings diff -r b32b41297893 -r ed45abb4940f cutils/util/__init__.py --- a/cutils/util/__init__.py Thu Jan 09 13:57:03 2025 +0100 +++ b/cutils/util/__init__.py Thu Jan 09 14:06:01 2025 +0100 @@ -156,9 +156,9 @@ while filename.startswith(b"./"): filename = filename[2:] else: - filename = filename.replace("\\", "/") + filename = filename.replace(u"\\", u"/") if strip_leading_dot_slash: - while filename.startswith("./"): + while filename.startswith(u"./"): filename = filename[2:] return filename