You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(const,vendor): FEATCode's docstring cites RFC 5797 "#secion-3", a typo that renders a wrong anchor #942
FEATCode's class docstring cites :rfc:5797#secion-3`` — secion, missing the `t`. Sphinx's `:rfc:` role does not validate the fragment, so it renders a live link to a wrong anchor and no build warns: nitpicky mode only checks `py:` targets.
It is in two places because one generates the other:
pcapkit/vendor/ftp/command.py:68 — inside the LINE f-string template at :40, i.e. the source of truth
pcapkit/const/ftp/command.py:28 — the generated copy
§3 is the right section (Initial Contents of Registry, where the keywords are listed). Deliberately leave get()'s :rfc:5797#section-2`` alone — it quotes §2.2's Registry Format wording verbatim and is correct as it stands.
Do not regenerate to fix this. Regenerating means a live IANA crawl; the line is a literal in the template, so editing both files identically is exactly what regeneration would produce.
(Four lines, not two: the template and its generated copy each carry both citations.)
Verified on main at d7489c61c:
grep -rn secion pcapkit/ — no matches, repo-wide, so this class of typo is gone rather than just fixed here.
pcapkit/const/ftp/command.py:28 and pcapkit/vendor/ftp/command.py:68 both now read ``:rfc:`5797#section-3```, byte-identical between template and generated copy — which is what a regeneration would have produced, without the IANA crawl this issue said to avoid.
Activity
JarryShaw commentedon Sep 30, 2026
Fixed by #943, merged as
cbd451097. Closing.That commit carries this issue's fix verbatim in both files:
(Four lines, not two: the template and its generated copy each carry both citations.)
Verified on
mainatd7489c61c:grep -rn secion pcapkit/— no matches, repo-wide, so this class of typo is gone rather than just fixed here.pcapkit/const/ftp/command.py:28andpcapkit/vendor/ftp/command.py:68both now read ``:rfc:`5797#section-3```, byte-identical between template and generated copy — which is what a regeneration would have produced, without the IANA crawl this issue said to avoid.get()'s ``:rfc:5797#section-2``` was left alone as this issue asked. Thesecion-2.2` sibling at `:269`/`:257` was also corrected, which this issue did not ask for but docs(const,vendor): fix RFC anchor typos and missing section- prefixes #943 swept up.#943's new
tests/project/test_rfc_anchor_fragments.pyrejectssecion-3as malformed, so the typo cannot come back through a regeneration.