[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
0c6bad2365
commit
7dbc95936e
1 changed files with 12 additions and 2 deletions
|
|
@ -446,7 +446,12 @@ def test_webm_export_still_works_without_an_audio_encoder(monkeypatch):
|
|||
def __init__(self, inner):
|
||||
self._inner = inner
|
||||
|
||||
def add_stream(self, codec_name = None, *args, **kwargs):
|
||||
def add_stream(
|
||||
self,
|
||||
codec_name = None,
|
||||
*args,
|
||||
**kwargs,
|
||||
):
|
||||
if codec_name == "libopus":
|
||||
raise ValueError("unknown encoder 'libopus'")
|
||||
return self._inner.add_stream(codec_name, *args, **kwargs)
|
||||
|
|
@ -461,7 +466,12 @@ def test_webm_export_still_works_without_an_audio_encoder(monkeypatch):
|
|||
def __exit__(self, *exc):
|
||||
return self._inner.__exit__(*exc)
|
||||
|
||||
def _open(file, mode = "r", *args, **kwargs):
|
||||
def _open(
|
||||
file,
|
||||
mode = "r",
|
||||
*args,
|
||||
**kwargs,
|
||||
):
|
||||
inner = real_open(file, mode, *args, **kwargs)
|
||||
return _NoOpusContainer(inner) if mode == "w" else inner
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue