From e833ac1c9b82709d94c229d4ca0c18b67444d54d Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Tue, 13 Nov 2012 12:18:30 +0100 Subject: [PATCH] Fixed some violations reported by pylint. --- blame.py | 3 ++- format.py | 3 +-- responsibilities.py | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/blame.py b/blame.py index 046b54f..140863d 100644 --- a/blame.py +++ b/blame.py @@ -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.") diff --git a/format.py b/format.py index 4911ca5..3d6ade0 100644 --- a/format.py +++ b/format.py @@ -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") diff --git a/responsibilities.py b/responsibilities.py index 9230d5a..bf7b05e 100644 --- a/responsibilities.py +++ b/responsibilities.py @@ -77,6 +77,9 @@ def output_xml(hard): resp_xml += "\t\t\t\t\t\t" + str(entry[0]) + "\n" resp_xml += "\t\t\t\t\t\n" + if j >= 9: + break + resp_xml += "\t\t\t\t\n" resp_xml += "\t\t\t\n"