<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def deliverTextResults(self):
 """ Deliver the results in a pretty text output. @return: Pretty text output! """


        output = "=======================\ntxctools Hotspot Report\n"\
        "=======================\n\n"

        fileResults = sorted(self.fileCounts.items(),
            key=lambda x: x[1]["warning_count"], reverse=True)

        output += "Warnings per File\n=================\n"
        count = 0

        for item in fileResults:
            count += 1
            output += "#%s - %s - %s\n" % (count, item[0],
                item[1]["warning_count"])

        output += "\nWarnings Breakdown\n==================\n"
        count = 0
        warningCount = 0

        warningResults = sorted(self.warningCounts.items(),
            key=lambda x: x[1]["count"], reverse=True)

        for item in warningResults:
            warningCount += item[1]["count"]

        for warning, winfo in warningResults:
            count += 1
            output += "#%s - %s - %s (%s%%) - %s\n" % (count, warning,
                winfo["count"], int(winfo["count"] / warningCount * 100),
                tools.cleanupMessage(warning, winfo))

        return output