diff options
author | Šarūnas Nejus <snejus@protonmail.com> | 2024-05-06 10:06:16 +0100 |
---|---|---|
committer | Šarūnas Nejus <snejus@protonmail.com> | 2024-05-06 10:06:16 +0100 |
commit | 22e2a3cd2c0842205cfb6b4be1a2f10adb704cda (patch) | |
tree | 46ae44382ced922d7f0cfc61e4436c0647ae4a25 | |
parent | 6a1f684371e2452e5bb4ca50156feed2dac29ae4 (diff) |
test
-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 e579b2a73..facfd509f 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -463,7 +463,7 @@ def syspath(path: AnyStr, prefix: bool = True) -> AnyStr: str_path = "UNC" + str_path[1:] str_path = WINDOWS_MAGIC_PREFIX + str_path - return cast(AnyStr, str_path) + return str_path if isinstance(path, str) else str_path.encode() def samefile(p1: AnyStr, p2: AnyStr) -> bool: |