(content: Any)
| 5 | |
| 6 | |
| 7 | def _stringify_content(content: Any) -> str: |
| 8 | if content is None: |
| 9 | return '' |
| 10 | if isinstance(content, str): |
| 11 | return content |
| 12 | try: |
| 13 | return json.dumps(content, ensure_ascii=False) |
| 14 | except Exception: |
| 15 | return str(content) |
| 16 | |
| 17 | |
| 18 | class HistoryEventizer: |
no outgoing calls
no test coverage detected