Skip to content

Commit 58230dc

Browse files
LamentXU123picnixz
andauthored
remove the following paragraph
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent d212a85 commit 58230dc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Doc/library/http.cookiejar.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,14 @@ contained :class:`Cookie` objects.
255255
Discards all contained cookies that have a true :attr:`expires` attribute
256256
(usually because their expiration time have passed)
257257

258-
This is a low-level function which probably don't need to be called because
259-
expired cookies are never sent back to the server (provided using
260-
:class:`DefaultCookiePolicy`). This method is called by :class:`CookieJar`
261-
itself every so often. It *could* only be useful when customizing a
262-
:class:`CookiePolicy` with an expiring logic.
258+
This is a low-level function which usually does not need to be called
259+
since expired cookies are never sent back to the server when using
260+
:class:`DefaultCookiePolicy` nor are they saved by :meth:`save` unless
261+
the latter is called with a truthy *ignore_expires*.
262+
263+
Since :class:`CookieJar` also calls this method every so often,
264+
it *could* only be useful when customizing a :class:`CookiePolicy`
265+
with an expiring logic.
263266

264267
Note that the :meth:`save` method won't save expired cookies anyway (unless you
265268
ask otherwise by passing a true *ignore_expires* argument).

0 commit comments

Comments
 (0)