(text: str)
| 2258 | |
| 2259 | |
| 2260 | def compute_hash(text: str) -> str: |
| 2261 | # We use a crypto hash instead of the builtin hash(...) function |
| 2262 | # because the output of hash(...) can differ between runs due to |
| 2263 | # hash randomization (enabled by default in Python 3.3). See the |
| 2264 | # note in |
| 2265 | # https://docs.python.org/3/reference/datamodel.html#object.__hash__. |
| 2266 | return hash_digest(text.encode("utf-8")) |
| 2267 | |
| 2268 | |
| 2269 | def write_cache( |
no test coverage detected
searching dependent graphs…