diff options
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 |
commit | c4d06c72b91c8e3ebdeaf05987638862deae3dd5 (patch) | |
tree | 93005f607d8cd9b1d8b9b0a6938e519f2b0fd4bd | |
parent | abd8447218c6e340a9f672b140e4c0fcd71318c2 (diff) |
Try changing this conditionfix-most-types-in-util-init
-rw-r--r-- | beets/util/__init__.py | 2 |
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. |