mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
Fixed some violations reported by pylint.
This commit is contained in:
parent
1b89bf150b
commit
e833ac1c9b
3 changed files with 6 additions and 3 deletions
3
blame.py
3
blame.py
|
@ -143,7 +143,8 @@ def get(hard):
|
||||||
|
|
||||||
return __blame__
|
return __blame__
|
||||||
|
|
||||||
__blame_info_text__ = "Below are the number of rows from each author that have survived and are still intact in the current revision"
|
__blame_info_text__ = ("Below are the number of rows from each author that have survived and are still "
|
||||||
|
"intact in the current revision")
|
||||||
|
|
||||||
def output_html(hard):
|
def output_html(hard):
|
||||||
print("HTML output not yet supported.")
|
print("HTML output not yet supported.")
|
||||||
|
|
|
@ -39,7 +39,6 @@ def select(format):
|
||||||
return format in __available_formats__
|
return format in __available_formats__
|
||||||
|
|
||||||
def is_interactive_format():
|
def is_interactive_format():
|
||||||
global __selected_format__
|
|
||||||
return __selected_format__ == "text"
|
return __selected_format__ == "text"
|
||||||
|
|
||||||
def __output_html_template__(name):
|
def __output_html_template__(name):
|
||||||
|
@ -55,7 +54,7 @@ def __get_zip_file_content__(name):
|
||||||
|
|
||||||
def output_header():
|
def output_header():
|
||||||
if __selected_format__ == "html":
|
if __selected_format__ == "html":
|
||||||
base = basedir.get_basedir();
|
base = basedir.get_basedir()
|
||||||
html_header = __output_html_template__(base + "/html/html.header")
|
html_header = __output_html_template__(base + "/html/html.header")
|
||||||
jquery_js = __get_zip_file_content__("jquery.js")
|
jquery_js = __get_zip_file_content__("jquery.js")
|
||||||
flot_js = __get_zip_file_content__("jquery.flot.js")
|
flot_js = __get_zip_file_content__("jquery.flot.js")
|
||||||
|
|
|
@ -77,6 +77,9 @@ def output_xml(hard):
|
||||||
resp_xml += "\t\t\t\t\t\t<rows>" + str(entry[0]) + "</rows>\n"
|
resp_xml += "\t\t\t\t\t\t<rows>" + str(entry[0]) + "</rows>\n"
|
||||||
resp_xml += "\t\t\t\t\t</file>\n"
|
resp_xml += "\t\t\t\t\t</file>\n"
|
||||||
|
|
||||||
|
if j >= 9:
|
||||||
|
break
|
||||||
|
|
||||||
resp_xml += "\t\t\t\t</files>\n"
|
resp_xml += "\t\t\t\t</files>\n"
|
||||||
resp_xml += "\t\t\t</author>\n"
|
resp_xml += "\t\t\t</author>\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue