def csvoutput(self):
        """Output data in CSV format as a string"""
        FILE = StringIO()
        try:
            self.csvsave(FILE)
            results = FILE.getvalue()
        finally:
            FILE.close()
        return results
Output data in CSV format as a string
recipes/Python/303338_Helper_subclass/recipe-303338.py