Browse Source

Remove commented code

pull/14710/head
Yurii Motov 5 months ago
parent
commit
50dd09a7b2
  1. 6
      scripts/doc_parsing_utils.py

6
scripts/doc_parsing_utils.py

@ -411,13 +411,7 @@ def _construct_html_link(
for attribute in attributes:
if attribute["name"] == "href":
original_url = attribute["value"]
url = _add_lang_code_to_url(original_url, lang_code)
# if original_url.startswith(TIANGOLO_COM):
# url = original_url.replace(TIANGOLO_COM, f"{TIANGOLO_COM}/{lang_code}")
# else:
# url = original_url
attributes_upd.append(
HTMLLinkAttribute(name="href", quote=attribute["quote"], value=url)
)

Loading…
Cancel
Save