Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed May 6, 2024
1 parent 6a1f684 commit 22e2a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beets/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 22e2a3c

Please sign in to comment.