(script)
| 1785 | method = getattr(hashlib, hash_algorithm) |
| 1786 | |
| 1787 | def _hash(script): |
| 1788 | return base64.b64encode(method(script.encode("utf-8")).digest()).decode( |
| 1789 | "utf-8" |
| 1790 | ) |
| 1791 | |
| 1792 | self._inline_scripts.extend(_callback.GLOBAL_INLINE_SCRIPTS) |
| 1793 | _callback.GLOBAL_INLINE_SCRIPTS.clear() |