From d45970a5e410401568d86652034faf8cbe76cf0f Mon Sep 17 00:00:00 2001 From: Silvano Cirujano Cuesta Date: Wed, 8 Nov 2023 01:39:44 +0100 Subject: [PATCH] style: consisten use of f-strings Signed-off-by: Silvano Cirujano Cuesta --- linkml_runtime/utils/uri_validator.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/linkml_runtime/utils/uri_validator.py b/linkml_runtime/utils/uri_validator.py index 2e66851c..f761415d 100644 --- a/linkml_runtime/utils/uri_validator.py +++ b/linkml_runtime/utils/uri_validator.py @@ -324,17 +324,17 @@ # ### Compile the regular expressions for better performance -uri_validator = re.compile("^{}$".format(URI), re.VERBOSE) +uri_validator = re.compile(f"^{URI}$", re.VERBOSE) -#uri_ref_validator = re.compile("^{}$".format(URI_reference), re.VERBOSE) +#uri_ref_validator = re.compile(f"^{URI_reference}$", re.VERBOSE) -uri_relative_ref_validator = re.compile("^{}$".format(relative_ref), re.VERBOSE) +uri_relative_ref_validator = re.compile(f"^{relative_ref}$", re.VERBOSE) -abs_uri_validator = re.compile("^{}$".format(absolute_URI), re.VERBOSE) +abs_uri_validator = re.compile(f"^{absolute_URI}$", re.VERBOSE) -curie_validator = re.compile("^{}$".format(CURIE), re.VERBOSE) +curie_validator = re.compile(f"^{CURIE}$", re.VERBOSE) -safe_curie_validator = re.compile("^{}$".format(safe_CURIE), re.VERBOSE) +safe_curie_validator = re.compile(f"^{safe_CURIE}$", re.VERBOSE) # ----------------------------------------------------------------------------- #