File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def linkcode_resolve(domain, info):
9191 start = Path (skillsnetwork .__file__ ).parent ,
9292 )
9393 source , lineno = getsourcelines (obj )
94- filename = f"skillsnetwork/{ fn } #L{ lineno } -L{ lineno + len (source ) - 1 } "
94+ fpath = f"skillsnetwork/{ fn } #L{ lineno } -L{ lineno + len (source ) - 1 } "
9595 except Exception as e :
9696 return None
9797 import subprocess
@@ -101,7 +101,4 @@ def linkcode_resolve(domain, info):
101101 stdout = subprocess .PIPE ,
102102 universal_newlines = True ,
103103 ).communicate ()[0 ][:- 1 ]
104- return (
105- "https://github.com/ibm-skills-network/skillsnetwork-python-library/blob/%s/%s"
106- % (commit_hash , filename )
107- )
104+ return f"https://github.com/ibm-skills-network/skillsnetwork-python-library/blob/{ commit_hash } /{ fpath } "
You can’t perform that action at this time.
0 commit comments