Create an empty copy of the given cache.
(cache)
| 67 | |
| 68 | |
| 69 | def copy_cache(cache): |
| 70 | """Create an empty copy of the given cache.""" |
| 71 | if cache is None: |
| 72 | return None |
| 73 | elif type(cache) is dict: |
| 74 | return {} |
| 75 | return LRUCache(cache.capacity) |
| 76 | |
| 77 | |
| 78 | def load_extensions(environment, extensions): |