Some minor PEP8 fixes

This commit is contained in:
vBm 2014-07-29 13:56:31 +02:00 committed by Daniel Marjamäki
parent bbd91fcfd3
commit ef0a4e87cb
1 changed files with 10 additions and 9 deletions

View File

@ -189,6 +189,7 @@ HTML_FOOTER = """
HTML_ERROR = "<span class='error2'>&lt;--- %s</span>\n"
HTML_INCONCLUSIVE = "<span class='inconclusive2'>&lt;--- %s</span>\n"
class AnnotateCodeFormatter(HtmlFormatter):
errors = []
@ -218,7 +219,7 @@ class CppCheckHandler(XmlContentHandler):
XmlContentHandler.__init__(self)
self.errors = []
self.version = '1'
self.versionCppcheck = '';
self.versionCppcheck = ''
def startElement(self, name, attributes):
if name == 'results':
@ -430,7 +431,7 @@ if __name__ == '__main__':
cnt_min = 0
for occurrences in reversed(range(cnt_min, cnt_max+1)):
for _id in[ k for k,v in sorted(Counter(stats).items()) if v == occurrences ]:
for _id in [k for k, v in sorted(Counter(stats).items()) if v == occurrences]:
stat_html.append(" " + str(dict(Counter(stats).most_common())[_id]) + " " + str(_id) + "<br/>\n")
output_file.write(HTML_HEAD.replace('id="menu" dir="rtl"', 'id="menu_index"', 1).replace("Defect list", "Defect summary", 1) % (options.title, '', options.title, ''))