(mcls, name, bases, attrs)
| 6019 | Sets default __doc__ and simplifies repr() output. |
| 6020 | """ |
| 6021 | def __new__(mcls, name, bases, attrs): |
| 6022 | if attrs.get('__doc__') is None: |
| 6023 | attrs['__doc__'] = name # helps when debugging with gdb |
| 6024 | return type.__new__(mcls, name, bases, attrs) |
| 6025 | def __repr__(cls): |
| 6026 | return repr(cls.__name__) |
| 6027 |
no test coverage detected