diff --git a/libmat2/bubblewrap.py b/libmat2/bubblewrap.py index ab6867e78477ca35cc7733116d507688462b26a2..961b76ee09e3050830e4d7dba07b343f430ca6a0 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 5979a64ef3467e6494c23de432c9a77f10b9c6e6..2b91ac2d19bd4d796bd7b7b588dd9465e5b06799 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 772a89e5a9c209e59560c073a9bbc94d2f329528..39059c5d7c2dfc755dd8fc630752676b8f34dd9a 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: