(self, x, level)
| 1209 | repr_str = repr_string |
| 1210 | |
| 1211 | def repr_instance(self, x, level): |
| 1212 | try: |
| 1213 | return cram(stripid(repr(x)), self.maxstring) |
| 1214 | except: |
| 1215 | return '<%s instance>' % x.__class__.__name__ |
| 1216 | |
| 1217 | class TextDoc(Doc): |
| 1218 | """Formatter class for text documentation.""" |