diff --git a/lib/galaxy/managers/markdown_util.py b/lib/galaxy/managers/markdown_util.py index 4e9185340ad1..9f02a675e1d0 100644 --- a/lib/galaxy/managers/markdown_util.py +++ b/lib/galaxy/managers/markdown_util.py @@ -63,7 +63,6 @@ from .markdown_parse import ( EMBED_DIRECTIVE_REGEX, GALAXY_MARKDOWN_FUNCTION_CALL_LINE, - VALID_ARGUMENTS, validate_galaxy_markdown, ) @@ -97,7 +96,7 @@ def _remap(container, line): if id_match := re.search(ENCODED_ID_PATTERN, line): object_id = id_match.group(2) decoded_id = trans.security.decode_id(object_id) - line = line.replace(id_match.group(), "{}={}".format(id_match.group(1), decoded_id)) + line = line.replace(id_match.group(), f"{id_match.group(1)}={decoded_id}") return (line, False) def _remap_embed_container(match): @@ -107,7 +106,7 @@ def _remap_embed_container(match): if id_match := re.search(ENCODED_ID_PATTERN, whole_match): object_id = id_match.group(2) decoded_id = trans.security.decode_id(object_id) - whole_match = whole_match.replace(id_match.group(), "{}={:d}".format(id_match.group(1), decoded_id)) + whole_match = whole_match.replace(id_match.group(), f"{id_match.group(1)}={decode_id}") return whole_match