summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorŠarūnas Nejus <snejus@protonmail.com>2024-05-06 13:53:32 +0100
committerŠarūnas Nejus <snejus@protonmail.com>2024-05-06 13:53:32 +0100
commitc4d06c72b91c8e3ebdeaf05987638862deae3dd5 (patch)
tree93005f607d8cd9b1d8b9b0a6938e519f2b0fd4bd
parentabd8447218c6e340a9f672b140e4c0fcd71318c2 (diff)
Try changing this conditionfix-most-types-in-util-init
-rw-r--r--beets/util/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/beets/util/__init__.py b/beets/util/__init__.py
index 87fc7504e..0f3ab2f28 100644
--- a/beets/util/__init__.py
+++ b/beets/util/__init__.py
@@ -440,7 +440,7 @@ def syspath(path: AnyStr, prefix: bool = True) -> AnyStr:
if os.path.__name__ != "ntpath":
return path
- if isinstance(path, bytes):
+ if not isinstance(path, str):
# Beets currently represents Windows paths internally with UTF-8
# arbitrarily. But earlier versions used MBCS because it is
# reported as the FS encoding by Windows. Try both.