(self)
| 448 | raise AttributeError, "'%s' object has no attribute '%s'" % (self.__class__.__name__, attr) |
| 449 | |
| 450 | def __unicode__(self): |
| 451 | return str(self).decode(DEFAULT_OUTPUT_ENCODING) |
| 452 | |
| 453 | def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING): |
| 454 | if encoding: |