Skip to content

Commit

Permalink
Remove redundant use of syspath that errors in new beets version
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerzaehler committed Sep 11, 2024
1 parent b63747e commit d500d1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions beetsplug/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def check(self, item):
if not self.can_check(item):
return
process = Popen(
self.cmdline.format(self.shellquote(syspath(item.path).decode("utf-8"))),
self.cmdline.format(self.shellquote(item.path.decode("utf-8"))),
shell=True,
stdin=PIPE,
stdout=PIPE,
Expand All @@ -555,8 +555,9 @@ def can_fix(self, item):
return self.can_check(item) and self.fixcmd

def fix(self, item):
assert isinstance(self.fixcmd, str)
check_call(
self.fixcmd.format(self.shellquote(syspath(item.path).decode("utf-8"))),
self.fixcmd.format(self.shellquote(item.path.decode("utf-8"))),
shell=True,
stdin=PIPE,
stdout=PIPE,
Expand Down

0 comments on commit d500d1d

Please sign in to comment.