Explicitly pass a parameter to functools.lru_cache
This commit is contained in:
parent
66a36f6b15
commit
e41390eb64
@ -22,7 +22,7 @@ CalledProcessError = subprocess.CalledProcessError
|
||||
# pylint: disable=subprocess-run-check
|
||||
|
||||
|
||||
@functools.lru_cache
|
||||
@functools.lru_cache(maxsize=None)
|
||||
def _get_bwrap_path() -> str:
|
||||
which_path = shutil.which('bwrap')
|
||||
if which_path:
|
||||
|
@ -67,7 +67,7 @@ class ExiftoolParser(abstract.AbstractParser):
|
||||
return False
|
||||
return True
|
||||
|
||||
@functools.lru_cache
|
||||
@functools.lru_cache(maxsize=None)
|
||||
def _get_exiftool_path() -> str: # pragma: no cover
|
||||
which_path = shutil.which('exiftool')
|
||||
if which_path:
|
||||
|
@ -135,7 +135,7 @@ class MP4Parser(AbstractFFmpegParser):
|
||||
}
|
||||
|
||||
|
||||
@functools.lru_cache()
|
||||
@functools.lru_cache(maxsize=None)
|
||||
def _get_ffmpeg_path() -> str: # pragma: no cover
|
||||
which_path = shutil.which('ffmpeg')
|
||||
if which_path:
|
||||
|
Loading…
x
Reference in New Issue
Block a user