Some minor PEP8 fixes
This commit is contained in:
parent
bbd91fcfd3
commit
ef0a4e87cb
|
@ -189,6 +189,7 @@ HTML_FOOTER = """
|
||||||
HTML_ERROR = "<span class='error2'><--- %s</span>\n"
|
HTML_ERROR = "<span class='error2'><--- %s</span>\n"
|
||||||
HTML_INCONCLUSIVE = "<span class='inconclusive2'><--- %s</span>\n"
|
HTML_INCONCLUSIVE = "<span class='inconclusive2'><--- %s</span>\n"
|
||||||
|
|
||||||
|
|
||||||
class AnnotateCodeFormatter(HtmlFormatter):
|
class AnnotateCodeFormatter(HtmlFormatter):
|
||||||
errors = []
|
errors = []
|
||||||
|
|
||||||
|
@ -218,7 +219,7 @@ class CppCheckHandler(XmlContentHandler):
|
||||||
XmlContentHandler.__init__(self)
|
XmlContentHandler.__init__(self)
|
||||||
self.errors = []
|
self.errors = []
|
||||||
self.version = '1'
|
self.version = '1'
|
||||||
self.versionCppcheck = '';
|
self.versionCppcheck = ''
|
||||||
|
|
||||||
def startElement(self, name, attributes):
|
def startElement(self, name, attributes):
|
||||||
if name == 'results':
|
if name == 'results':
|
||||||
|
@ -430,7 +431,7 @@ if __name__ == '__main__':
|
||||||
cnt_min = 0
|
cnt_min = 0
|
||||||
|
|
||||||
for occurrences in reversed(range(cnt_min, cnt_max+1)):
|
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")
|
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, ''))
|
output_file.write(HTML_HEAD.replace('id="menu" dir="rtl"', 'id="menu_index"', 1).replace("Defect list", "Defect summary", 1) % (options.title, '', options.title, ''))
|
||||||
|
|
Loading…
Reference in New Issue