def __str__(self):
        try:
            import cStringIO as StringIO
        except __HOLE__:
            import StringIO
        output = StringIO.StringIO()
        output.write(Exception.__str__(self))
        # Check if we wrapped an exception and print that too.
        if hasattr(self, 'exc_info'):
            import traceback
            output.write('\n\nOriginal ')
            e = self.exc_info
            traceback.print_exception(e[0], e[1], e[2], 500, output)
        return output.getvalue()
dataset/ETHPy150Open dcramer/django-compositepks/django/template/__init__.py/TemplateSyntaxError.__str__