From 1631e12ed3d77712c5d473e4d85dd02e3b2579c3 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Tue, 29 Mar 2022 13:26:19 +0200 Subject: [PATCH] [bootstrap] Import hashlib globally --- bob/devtools/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/devtools/bootstrap.py b/bob/devtools/bootstrap.py index fa19efd9..4473fee3 100644 --- a/bob/devtools/bootstrap.py +++ b/bob/devtools/bootstrap.py @@ -5,6 +5,7 @@ """Bootstraps a new miniconda installation and prepares it for development.""" import glob +import hashlib import logging import os import platform @@ -235,7 +236,6 @@ def ensure_miniconda_sh(): if os.path.exists("miniconda.sh"): logger.info("(check) miniconda.sh sha256 (== %s?)", sha256) - import hashlib actual_sha256 = hashlib.sha256( open("miniconda.sh", "rb").read() -- GitLab