mirror of
https://github.com/beetbox/beets.git
synced 2026-03-27 07:43:38 +01:00
Revert "Add some assertion for input of replace_ext()"
This reverts commit 52b639b4ee95736bb128876a8e4bd6a7046b06a6.
This commit is contained in:
parent
cddfa8c6dd
commit
dad1b2e4e1
1 changed files with 0 additions and 2 deletions
|
|
@ -49,8 +49,6 @@ def replace_ext(path, ext):
|
|||
|
||||
The new extension must not contain a leading dot.
|
||||
"""
|
||||
assert isinstance(path, bytes)
|
||||
assert isinstance(ext, bytes)
|
||||
ext_dot = b"." + ext
|
||||
return os.path.splitext(path)[0] + ext_dot
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue