diff --git a/libmat2/bubblewrap.py b/libmat2/bubblewrap.py index ab6867e..961b76e 100644 --- a/libmat2/bubblewrap.py +++ b/libmat2/bubblewrap.py @@ -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: diff --git a/libmat2/exiftool.py b/libmat2/exiftool.py index 5979a64..2b91ac2 100644 --- a/libmat2/exiftool.py +++ b/libmat2/exiftool.py @@ -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: diff --git a/libmat2/video.py b/libmat2/video.py index 772a89e..39059c5 100644 --- a/libmat2/video.py +++ b/libmat2/video.py @@ -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: