diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2022-10-20 15:34:16 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2022-10-20 15:40:58 -0500 |
commit | 18944347528775f284db8f9c218f1990f4d7333a (patch) | |
tree | 0155b72e7f09018a732f4138508d0ca1a96efc7c | |
parent | 0035af2094ec4541329eed2d1b5449aa2665ef7d (diff) | |
download | requests-cache-18944347528775f284db8f9c218f1990f4d7333a.tar.gz |
Add DeprecationWarning if importing from cache_control module
-rw-r--r-- | requests_cache/cache_control.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/requests_cache/cache_control.py b/requests_cache/cache_control.py new file mode 100644 index 0000000..c1c33f8 --- /dev/null +++ b/requests_cache/cache_control.py @@ -0,0 +1,11 @@ +# flake8: noqa: F401, F403 +from warnings import warn + +from .policy import * + +warn( + DeprecationWarning( + 'Contents of requests_cache.cache_control will be moved in an upcoming release; ' + 'please import members `from requests_cache` instead' + ) +) |