Skip to content

Commit d45970a

Browse files
committed
style: consisten use of f-strings
Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
1 parent 38c4be2 commit d45970a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

linkml_runtime/utils/uri_validator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,17 @@
324324
#
325325
### Compile the regular expressions for better performance
326326

327-
uri_validator = re.compile("^{}$".format(URI), re.VERBOSE)
327+
uri_validator = re.compile(f"^{URI}$", re.VERBOSE)
328328

329-
#uri_ref_validator = re.compile("^{}$".format(URI_reference), re.VERBOSE)
329+
#uri_ref_validator = re.compile(f"^{URI_reference}$", re.VERBOSE)
330330

331-
uri_relative_ref_validator = re.compile("^{}$".format(relative_ref), re.VERBOSE)
331+
uri_relative_ref_validator = re.compile(f"^{relative_ref}$", re.VERBOSE)
332332

333-
abs_uri_validator = re.compile("^{}$".format(absolute_URI), re.VERBOSE)
333+
abs_uri_validator = re.compile(f"^{absolute_URI}$", re.VERBOSE)
334334

335-
curie_validator = re.compile("^{}$".format(CURIE), re.VERBOSE)
335+
curie_validator = re.compile(f"^{CURIE}$", re.VERBOSE)
336336

337-
safe_curie_validator = re.compile("^{}$".format(safe_CURIE), re.VERBOSE)
337+
safe_curie_validator = re.compile(f"^{safe_CURIE}$", re.VERBOSE)
338338

339339
# -----------------------------------------------------------------------------
340340
#

0 commit comments

Comments
 (0)