Skip to content
Snippets Groups Projects
Commit e41390eb authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Explicitly pass a parameter to functools.lru_cache

parent 66a36f6b
No related branches found
No related tags found
No related merge requests found
Pipeline #130313 passed with warnings
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment