(value: Any, what: Any, func: Any = str)
| 65 | |
| 66 | |
| 67 | def _safe_string(value: Any, what: Any, func: Any = str) -> str: |
| 68 | # Copied from cpython/Lib/traceback.py |
| 69 | try: |
| 70 | return func(value) |
| 71 | except: |
| 72 | return f"<{what} {func.__name__}() failed>" |
| 73 | |
| 74 | |
| 75 | def _format_traceback_lines( |
no test coverage detected
searching dependent graphs…