File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 """
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments