Skip to content

Commit 256b467

Browse files
YuvalElbar6claude
andcommitted
Remove pickle references from docs and docstrings
Follow-up to aio-libs#12091. Remove mentions of pickle format from the CookieJar.load() docstring and the client_reference docs. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 51d5dba commit 256b467

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

aiohttp/cookiejar.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,6 @@ def save(self, file_path: PathLike) -> None:
176176
def load(self, file_path: PathLike) -> None:
177177
"""Load cookies from a file.
178178
179-
Tries to load JSON format first. Falls back to loading legacy
180-
pickle format (using a restricted unpickler) for backward
181-
compatibility with existing cookie files.
182-
183179
:param file_path: Path to file from where cookies will be
184180
imported, :class:`str` or :class:`pathlib.Path` instance.
185181
"""

docs/client_reference.rst

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,25 +2476,12 @@ Utilities
24762476
Write a JSON representation of cookies into the file
24772477
at provided path.
24782478

2479-
.. versionchanged:: 3.14
2480-
2481-
Previously used pickle format. Now uses JSON for safe
2482-
serialization.
2483-
24842479
:param file_path: Path to file where cookies will be serialized,
24852480
:class:`str` or :class:`pathlib.Path` instance.
24862481

24872482
.. method:: load(file_path)
24882483

2489-
Load cookies from the file at provided path. Tries JSON format
2490-
first, then falls back to legacy pickle format (using a restricted
2491-
unpickler that only allows cookie-related types) for backward
2492-
compatibility with existing cookie files.
2493-
2494-
.. versionchanged:: 3.14
2495-
2496-
Now loads JSON format by default. Falls back to restricted
2497-
pickle for files saved by older versions.
2484+
Load cookies from the file at provided path.
24982485

24992486
:param file_path: Path to file from where cookies will be
25002487
imported, :class:`str` or :class:`pathlib.Path` instance.

0 commit comments

Comments
 (0)