File tree 2 files changed +2
-2
lines changed
tests/pep_processor/transform
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def _add_commit_history_info(pep_source_path: Path) -> nodes.paragraph:
66
66
except KeyError :
67
67
return nodes .paragraph ()
68
68
69
- commit_link = f"https://github.com/python/peps/commits/main/{ pep_source_path .name } "
69
+ commit_link = f"https://github.com/python/peps/commits/main/peps/ { pep_source_path .name } "
70
70
link_node = nodes .reference ("" , f"{ iso_time } GMT" , refuri = commit_link )
71
71
return nodes .paragraph ("" , "Last modified: " , link_node )
72
72
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def test_add_commit_history_info():
16
16
17
17
assert str (out ).startswith (
18
18
"<paragraph>Last modified: "
19
- '<reference refuri="https://github.com/python/peps/commits/main/pep-0008.rst">'
19
+ '<reference refuri="https://github.com/python/peps/commits/main/peps/ pep-0008.rst">'
20
20
)
21
21
# A variable timestamp comes next, don't test that
22
22
assert str (out ).endswith ("</reference></paragraph>" )
You can’t perform that action at this time.
0 commit comments