From 82a048004a85f6a91e8baab8db4c865875552930 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 12 Jan 2022 12:53:04 -0800 Subject: [PATCH] test-locked-requirements: Rename may_be_setup_cache to maybe_set_up_cache. Signed-off-by: Anders Kaseorg --- tools/test-locked-requirements | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test-locked-requirements b/tools/test-locked-requirements index 3c7a65ca25..6ae282eb22 100755 --- a/tools/test-locked-requirements +++ b/tools/test-locked-requirements @@ -67,7 +67,7 @@ def get_requirements_hash(tmp_dir: str, use_test_lock_files: bool = False) -> st return sha1.hexdigest() -def may_be_setup_cache() -> None: +def maybe_set_up_cache() -> None: os.makedirs(CACHE_DIR, exist_ok=True) if not os.path.exists(CACHE_FILE): with open(CACHE_FILE, "wb") as fp: @@ -90,7 +90,7 @@ def update_cache(hash_list: List[str]) -> None: def main() -> None: - may_be_setup_cache() + maybe_set_up_cache() hash_list = load_cache() tmp = tempfile.TemporaryDirectory() tmp_dir = tmp.name