(obj, short=False)
| 52 | for s in args) |
| 53 | |
| 54 | def safe_repr(obj, short=False): |
| 55 | try: |
| 56 | result = repr(obj) |
| 57 | except Exception: |
| 58 | result = object.__repr__(obj) |
| 59 | if not short or len(result) < _MAX_LENGTH: |
| 60 | return result |
| 61 | return result[:_MAX_LENGTH] + ' [truncated]...' |
| 62 | |
| 63 | def strclass(cls): |
| 64 | return "%s.%s" % (cls.__module__, cls.__qualname__) |
searching dependent graphs…