(val, maxlen)
| 139 | |
| 140 | |
| 141 | def _format_chars(val, maxlen): |
| 142 | # type: (AnyStr, int) -> str |
| 143 | if isinstance(val, bytes): # pragma: no cover |
| 144 | return _format_binary_bytes(val, maxlen) |
| 145 | else: |
| 146 | return "'{}'".format(truncate(val, maxlen).replace("'", "\\'")) |
| 147 | |
| 148 | |
| 149 | def _repr(obj): |
no test coverage detected