Revert "Add some assertion for input of replace_ext()"

This reverts commit 52b639b4ee95736bb128876a8e4bd6a7046b06a6.
This commit is contained in:
Pierre Ayoub 2024-07-03 12:54:39 +02:00 committed by Pierre Ayoub
parent cddfa8c6dd
commit dad1b2e4e1
No known key found for this signature in database
GPG key ID: B1AF6307DB5EB778

View file

@ -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