diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2021-09-19 21:06:03 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2021-09-19 21:06:03 -0500 |
commit | 5605db4a84c4ee15f4406ea872aa650e31f3348f (patch) | |
tree | ac9ed57ef46c4cead6682bec8f82854dcdb9da98 /examples | |
parent | d1462b16eb479db766cf179829506c5238c9dde8 (diff) | |
download | requests-cache-5605db4a84c4ee15f4406ea872aa650e31f3348f.tar.gz |
Fix usage of BaseCache.urls in example scripts
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/basic_patching.py | 3 | ||||
-rwxr-xr-x | examples/basic_sessions.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/basic_patching.py b/examples/basic_patching.py index def0ead..0e94b23 100755 --- a/examples/basic_patching.py +++ b/examples/basic_patching.py @@ -28,7 +28,8 @@ def main(): # Get some debugging info about the cache print(requests_cache.get_cache()) - print('Cached URLS:', requests_cache.get_cache().urls) + print('Cached URLS:') + print('\n'.join(requests_cache.get_cache().urls)) # Uninstall to remove caching from all requests functions requests_cache.uninstall_cache() diff --git a/examples/basic_sessions.py b/examples/basic_sessions.py index 42a6dd2..07e14bf 100755 --- a/examples/basic_sessions.py +++ b/examples/basic_sessions.py @@ -25,7 +25,8 @@ def main(): # Get some debugging info about the cache print(session.cache) - print('Cached URLS:', list(session.cache.urls)) + print('Cached URLS:') + print('\n'.join(session.cache.urls)) if __name__ == "__main__": |