Fixed some violations reported by pylint.

This commit is contained in:
Adam Waldenberg 2012-11-13 12:18:30 +01:00
parent 1b89bf150b
commit e833ac1c9b
3 changed files with 6 additions and 3 deletions

View file

@ -143,7 +143,8 @@ def get(hard):
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):
print("HTML output not yet supported.")

View file

@ -39,7 +39,6 @@ def select(format):
return format in __available_formats__
def is_interactive_format():
global __selected_format__
return __selected_format__ == "text"
def __output_html_template__(name):
@ -55,7 +54,7 @@ def __get_zip_file_content__(name):
def output_header():
if __selected_format__ == "html":
base = basedir.get_basedir();
base = basedir.get_basedir()
html_header = __output_html_template__(base + "/html/html.header")
jquery_js = __get_zip_file_content__("jquery.js")
flot_js = __get_zip_file_content__("jquery.flot.js")

View file

@ -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</file>\n"
if j >= 9:
break
resp_xml += "\t\t\t\t</files>\n"
resp_xml += "\t\t\t</author>\n"