8000 gh-101100: Fix Sphinx warning in library/http.cookies.rst by hugovk · Pull Request #112908 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-101100: Fix Sphinx warning in library/http.cookies.rst #112908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MSIE 3 in past tense, lowercase cookie, formatting
  • Loading branch information
hugovk committed Dec 9, 2023
commit d9ec706ab445d7432a4bedb5ef9b7336da1b8922
12 changes: 6 additions & 6 deletions Doc/library/http.cookies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ cookie value.

The module formerly strictly applied the parsing rules described in the
:rfc:`2109` and :rfc:`2068` specifications. It has since been discovered that
MSIE 3.0x doesn't follow the character rules outlined in those specs and also
many current day browsers and servers have relaxed parsing rules when comes to
Cookie handling. As a result, the parsing rules used are a bit less strict.
MSIE 3.0x didn't follow the character rules outlined in those specs and also
many current day browsers and servers have relaxed parsing rules when it comes to
cookie handling. As a result, the parsing rules used are a bit less strict.

The character set, :data:`string.ascii_letters`, :data:`string.digits` and
``!#$%&'*+-.^_`|~:`` denote the set of valid characters allowed by this module
in Cookie name (as :attr:`~Morsel.key`).
in a cookie name (as :attr:`~Morsel.key`).

.. versionchanged:: 3.3
Allowed ':' as a valid Cookie name character.
Allowed ':' as a valid cookie name character.


.. note::
Expand Down Expand Up @@ -56,7 +56,7 @@ in Cookie name (as :attr:`~Morsel.key`).

This class derives from :class:`BaseCookie` and overrides :meth:`~BaseCookie.value_decode`
and :meth:`~BaseCookie.value_encode`. SimpleCookie supports strings as cookie values.
When setting the value, SimpleCookie calls the builtin :func:`str()` to convert
When setting the value, :class:`!SimpleCookie` calls the builtin :func:`str()` to convert
the value to a string. Values received from HTTP are kept as strings.

.. seealso::
Expand Down
0