Unverified Commit cd7a301b authored by Emmanuel Ferdman's avatar Emmanuel Ferdman Committed by GitHub
Browse files

fix: resolve regex library warnings (#1237)


Signed-off-by: default avatarEmmanuel Ferdman <emmanuelferdman@gmail.com>
parent 9abe8dff
...@@ -160,7 +160,7 @@ def replace_url_with_relpath(url, src_doc_path): ...@@ -160,7 +160,7 @@ def replace_url_with_relpath(url, src_doc_path):
# The "target_path" must be a file at this line. # The "target_path" must be a file at this line.
relpath = os.path.relpath(target_path, start=os.path.dirname(src_doc_path)) relpath = os.path.relpath(target_path, start=os.path.dirname(src_doc_path))
return re.sub(dynamo_github_url_reg, relpath, url, 1) return re.sub(dynamo_github_url_reg, relpath, url, count=1)
def replace_relpath_with_url(relpath, src_doc_path): def replace_relpath_with_url(relpath, src_doc_path):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment