From dad1b2e4e1eadeb12e2d4d5e06e9f0517aacd7cf Mon Sep 17 00:00:00 2001 From: Pierre Ayoub Date: Wed, 3 Jul 2024 12:54:39 +0200 Subject: [PATCH] Revert "Add some assertion for input of replace_ext()" This reverts commit 52b639b4ee95736bb128876a8e4bd6a7046b06a6. --- beetsplug/convert.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/beetsplug/convert.py b/beetsplug/convert.py index fc9e368fa..c46b2fc85 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -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