diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py index 5f5a5ada199..bdfd7dc6b2d 100644 --- a/aiohttp/cookiejar.py +++ b/aiohttp/cookiejar.py @@ -141,7 +141,7 @@ def save(self, file_path: PathLike) -> None: json.dump(data, f, indent=2) def load(self, file_path: PathLike) -> None: - """Load cookies from a JSON file. + """Load cookies from a file. :param file_path: Path to file from where cookies will be imported, :class:`str` or :class:`pathlib.Path` instance. diff --git a/docs/client_reference.rst b/docs/client_reference.rst index d731ac9bfd0..9d0639c9493 100644 --- a/docs/client_reference.rst +++ b/docs/client_reference.rst @@ -2503,7 +2503,7 @@ Utilities .. method:: load(file_path) - Load cookies from a JSON file at the provided path. + Load cookies from the file at provided path. :param file_path: Path to file from where cookies will be imported, :class:`str` or :class:`pathlib.Path` instance.