Skip to content

Commit

Permalink
Fix document code case errors (#326)
Browse files Browse the repository at this point in the history
在SeparateBodyFileCache章节,给出的文档样例存在错误,代码无法被正确执行
  • Loading branch information
somata-cn authored Jan 29, 2024
1 parent 6c76160 commit 7e3edbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``.

Expand Down

0 comments on commit 7e3edbf

Please sign in to comment.