Skip to content
Snippets Groups Projects

Revert the url str substitution to modulo instead of format

Merged Yannick DAYER requested to merge fix-doc-url into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -233,7 +233,7 @@ def link_documentation(
)
except pkg_resources.DistributionNotFound:
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:
# otherwise, urlopen will fail
Loading