Skip to content

gh-151945: Fix reference warnings in http.cookiejar docs#152816

Open
harjothkhara wants to merge 1 commit into
python:mainfrom
harjothkhara:gh-151945-cookiejar-refs
Open

gh-151945: Fix reference warnings in http.cookiejar docs#152816
harjothkhara wants to merge 1 commit into
python:mainfrom
harjothkhara:gh-151945-cookiejar-refs

Conversation

@harjothkhara

Copy link
Copy Markdown
Contributor

Per @picnixz's suggestion in gh-151945, this covers the http.cookiejar
half of the issue; @picnixz is taking http.server.

Fixes the Sphinx nit-picky reference warnings for
Doc/library/http.cookiejar.rst and removes the file from
Doc/tools/.nitignore so future regressions are caught by CI.

  • Documented targets are qualified with their owning class, e.g.
    Cookie.version, CookiePolicy.rfc2965/hide_cookie2, the
    urllib.request.Request methods and attributes, and
    urllib.response.addinfourl.info.
  • The removed get_origin_req_host method, which has no documented
    target, becomes an inline literal.

Verified with a full nit-picky build: the file emits no warnings and
Doc/tools/check-warnings.py --fail-if-regression --fail-if-improved
passes. Documentation-only reference fix, so no NEWS entry (skip news).

Disclosure: I used AI assistance on this change; I've reviewed it and can
explain it.

Resolve the nit-picky reference warnings in Doc/library/http.cookiejar.rst
and drop the file from Doc/tools/.nitignore so future regressions are
caught by CI.

Documented targets are qualified with their owning class, for example
Cookie.version, CookiePolicy.rfc2965, the urllib.request.Request methods
and attributes, and urllib.response.addinfourl.info. References with no
documented target become inline literals: the removed get_origin_req_host
method.

The http.server part of the issue is left for a separate change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33398384 | 📁 Comparing eecbef2 against main (df2538a)

  🔍 Preview build  

1 file changed
± library/http.cookiejar.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant