(self)
| 144 | raise TypeError("CachingStore is read-only; use Store.create() to build a DB") |
| 145 | |
| 146 | def close(self) -> None: |
| 147 | with self._stores_lock: |
| 148 | self._closed = True |
| 149 | stores = self._stores |
| 150 | self._stores = [] |
| 151 | |
| 152 | for thread_store in stores: |
| 153 | thread_store.close() |
| 154 | if hasattr(self._local, "store"): |
| 155 | del self._local.store |
| 156 | |
| 157 | def find_man_page( |
| 158 | self, name: str, distro: str | None = None, release: str | None = None |
no outgoing calls