(mcls, name, bases, attrs)
| 5783 | Sets default __doc__ and simplifies repr() output. |
| 5784 | """ |
| 5785 | def __new__(mcls, name, bases, attrs): |
| 5786 | if attrs.get('__doc__') is None: |
| 5787 | attrs['__doc__'] = name # helps when debugging with gdb |
| 5788 | return type.__new__(mcls, name, bases, attrs) |
| 5789 | def __repr__(cls): |
| 5790 | return repr(cls.__name__) |
| 5791 |
no test coverage detected