From a4402e85c5189137ab38b4de2b0fa8466afb01fe Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Sat, 23 Nov 2024 17:14:38 +0000 Subject: [PATCH] MAINT: Fix typo --- asv/plugins/_mamba_helpers.py | 1 + asv/plugins/mamba.py | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/asv/plugins/_mamba_helpers.py b/asv/plugins/_mamba_helpers.py index 869ba2ab4..0aec5d936 100644 --- a/asv/plugins/_mamba_helpers.py +++ b/asv/plugins/_mamba_helpers.py @@ -14,6 +14,7 @@ from ..console import log + def get_index( channel_urls=(), prepend=True, diff --git a/asv/plugins/mamba.py b/asv/plugins/mamba.py index 8fd29cfc7..92e78592f 100644 --- a/asv/plugins/mamba.py +++ b/asv/plugins/mamba.py @@ -12,14 +12,13 @@ except ImportError: from yaml import Loader -from .. import environment, util -from ..console import log - - from importlib_metadata import version as get_version import libmambapy -if int(get_version(libmambapy).split(".")[0]) <= 2: +from .. import environment, util +from ..console import log + +if int(get_version('libmambapy').split(".")[0]) >= 2: raise environment.EnvironmentUnavailable( f"libmambapy must be less than 2.0, but got {get_version('libmambapy')}" )