mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 09:33:46 +01:00
reorient bytestring_path code in convert replace_ext
This commit is contained in:
parent
fff0439b06
commit
cf5ab2617a
1 changed files with 2 additions and 2 deletions
|
|
@ -47,8 +47,8 @@ def replace_ext(path, ext):
|
|||
|
||||
The new extension must not contain a leading dot.
|
||||
"""
|
||||
path = os.path.splitext(path)[0] + '.' + ext
|
||||
return util.bytestring_path(path)
|
||||
ext_dot = util.bytestring_path('.' + ext)
|
||||
return os.path.splitext(path)[0] + ext_dot
|
||||
|
||||
|
||||
def get_format(fmt=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue