Skip to content
Snippets Groups Projects
Commit a683ba78 authored by Yannick DAYER's avatar Yannick DAYER
Browse files

Merge branch 'fix-doc-url' into 'master'

Revert the url str substitution to modulo instead of format

See merge request !150
parents 515404b0 619a8b48
No related branches found
No related tags found
1 merge request!150Revert the url str substitution to modulo instead of format
Pipeline #79755 passed
...@@ -233,7 +233,7 @@ def link_documentation( ...@@ -233,7 +233,7 @@ def link_documentation(
) )
except pkg_resources.DistributionNotFound: except pkg_resources.DistributionNotFound:
version = "stable" # package is not a runtime dep, only referenced version = "stable" # package is not a runtime dep, only referenced
url = s.format(name=package_name, version=version) url = s % {"name": package_name, "version": version}
try: try:
# otherwise, urlopen will fail # otherwise, urlopen will fail
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment