Skip to content

Commit 7e3edbf

Browse files
authored
Fix document code case errors (#326)
在SeparateBodyFileCache章节,给出的文档样例存在错误,代码无法被正确执行
1 parent 6c76160 commit 7e3edbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/storage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ Here is an example of using the cache::
7777

7878
import requests
7979
from cachecontrol import CacheControl
80-
from cachecontrol.caches SeparateBodyFileCache
80+
from cachecontrol.caches import SeparateBodyFileCache
8181

8282
sess = CacheControl(requests.Session(),
83-
cache=SeparatedBodyFileCache('.web_cache'))
83+
cache=SeparateBodyFileCache('.web_cache'))
8484

8585
``SeparateBodyFileCache`` supports the same options as ``FileCache``.
8686

0 commit comments

Comments
 (0)