From 5ea81b6c5f4c6676b6f788bed7f99082df82a305 Mon Sep 17 00:00:00 2001 From: somata <40385591+somata-cn@users.noreply.github.com> Date: Mon, 29 Jan 2024 10:48:41 +0800 Subject: [PATCH] Fix document code case errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在SeparateBodyFileCache章节,给出的文档样例存在错误,代码无法被正确执行 --- docs/storage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/storage.rst b/docs/storage.rst index a2fc3fce..d3e71771 100644 --- a/docs/storage.rst +++ b/docs/storage.rst @@ -77,10 +77,10 @@ Here is an example of using the cache:: import requests from cachecontrol import CacheControl - from cachecontrol.caches SeparateBodyFileCache + from cachecontrol.caches import SeparateBodyFileCache sess = CacheControl(requests.Session(), - cache=SeparatedBodyFileCache('.web_cache')) + cache=SeparateBodyFileCache('.web_cache')) ``SeparateBodyFileCache`` supports the same options as ``FileCache``.