| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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>
Documentation build overview7 files changed · ± 7 modified ± Modified |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks! Whilst we're here, please could also update the headers to use sentence case?
https://devguide.python.org/documentation/style-guide/#capitalization
That is, change the four "Objects" to "objects":
Sorry, something went wrong.
There was a problem hiding this comment.
The reference fixes here are correct 👍 Please apply Hugo's suggestions.
Sorry, something went wrong.
…ge, markup Apply Hugo's review feedback for Doc/library/http.cookiejar.rst: - Use sentence case for the four "... Objects" section headers. - Replace the Latin abbreviations "ie."/"eg." with "that is"/"for example" per the devguide simple-language guidance. - Use ``None`` literal markup instead of :const:`None`. - Reference the removed method as :meth:`!get_origin_req_host` to match the surrounding formatting. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Thank you both! Applied all of Hugo's suggestions. Please re-review when you get a chance. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
There was a problem hiding this comment.
Spotted two little things.
Sorry, something went wrong.
…self.filename Apply Stan's review feedback: - Point the response info() reference at http.client.HTTPResponse rather than the deprecated urllib.response.addinfourl.info. - Keep the FileCookieJar.save attribute references as self.filename so they read clearly, using :attr:`!self.filename` to avoid a broken cross-reference. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Per Stan's suggestion, use the explicit-title cross-reference :attr:`self.filename <FileCookieJar.filename>` so the text still reads "self.filename" while linking to the documented attribute. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
One little nit but otherwise LGTM, this is a solid improvement of the page. Thanks @harjothkhara and @claude.
Sorry, something went wrong.
|
Thanks @harjothkhara for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
Sorry, something went wrong.
|
Merged, thanks. |
Sorry, something went wrong.
|
GH-153032 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
Sorry, @harjothkhara and @StanFromIreland, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 66c76fa6737d497cd3c735f75e67a5ca52eceb15 3.13 |
Sorry, something went wrong.
|
GH-153033 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-153034 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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.
Cookie.version, CookiePolicy.rfc2965/hide_cookie2, the
urllib.request.Request methods and attributes, and
urllib.response.addinfourl.info.
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.