Don't lru_cache versions

lru_cache could interfere with testing and we don't have evidence this
is slow enough to justify optimizing.
This commit is contained in:
James R. Barlow
2022-08-01 13:23:31 -07:00
parent 5fe3102e4e
commit 2b2e5c271a

View File

@@ -9,7 +9,6 @@ import os
import re
import sys
from contextlib import suppress
from functools import lru_cache
from pathlib import Path
from subprocess import PIPE, STDOUT, CalledProcessError, CompletedProcess, Popen
from subprocess import run as subprocess_run
@@ -135,7 +134,6 @@ def _fix_process_args(
return args, env, process_log, text
@lru_cache(maxsize=None)
def get_version(
program: str,
*,