From f368c0019a3d88527ba619f25a714159e6ba2f43 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Tue, 22 Sep 2015 02:41:16 +0200 Subject: [PATCH] Fixed mistake in the filtering module related to hash filtering. FILTERING_EMAIL_INFO_TEXT was erroneously being defined twice. --- gitinspector/filtering.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gitinspector/filtering.py b/gitinspector/filtering.py index 82f2bdb..4f40a1e 100644 --- a/gitinspector/filtering.py +++ b/gitinspector/filtering.py @@ -1,6 +1,6 @@ # coding: utf-8 # -# Copyright © 2012-2014 Ejwa Software. All rights reserved. +# Copyright © 2012-2015 Ejwa Software. All rights reserved. # # This file is part of gitinspector. # @@ -77,8 +77,8 @@ FILTERING_INFO_TEXT = N_("The following files were excluded from the statistics FILTERING_AUTHOR_INFO_TEXT = N_("The following authors were excluded from the statistics due to the specified exclusion patterns") FILTERING_EMAIL_INFO_TEXT = N_("The authors with the following emails were excluded from the statistics due to the specified " \ "exclusion patterns") -FILTERING_EMAIL_INFO_TEXT = N_("The following commit revisions were excluded from the statistics due to the specified " \ - "exclusion patterns") +FILTERING_COMMIT_INFO_TEXT = N_("The following commit revisions were excluded from the statistics due to the specified " \ + "exclusion patterns") class Filtering(Outputable): @staticmethod @@ -99,7 +99,7 @@ class Filtering(Outputable): Filtering.__output_html_section__(_(FILTERING_INFO_TEXT), __filters__["file"][1]) Filtering.__output_html_section__(_(FILTERING_AUTHOR_INFO_TEXT), __filters__["author"][1]) Filtering.__output_html_section__(_(FILTERING_EMAIL_INFO_TEXT), __filters__["email"][1]) - Filtering.__output_html_section__(_(FILTERING_EMAIL_INFO_TEXT), __filters__["revision"][1]) + Filtering.__output_html_section__(_(FILTERING_COMMIT_INFO_TEXT), __filters__["revision"][1]) filtering_xml += "" print(filtering_xml) @@ -117,7 +117,7 @@ class Filtering(Outputable): Filtering.__output_text_section__(_(FILTERING_INFO_TEXT), __filters__["file"][1]) Filtering.__output_text_section__(_(FILTERING_AUTHOR_INFO_TEXT), __filters__["author"][1]) Filtering.__output_text_section__(_(FILTERING_EMAIL_INFO_TEXT), __filters__["email"][1]) - Filtering.__output_text_section__(_(FILTERING_EMAIL_INFO_TEXT), __filters__["revision"][1]) + Filtering.__output_text_section__(_(FILTERING_COMMIT_INFO_TEXT), __filters__["revision"][1]) @staticmethod def __output_xml_section__(info_string, filtered, container_tagname): @@ -138,5 +138,5 @@ class Filtering(Outputable): Filtering.__output_xml_section__(_(FILTERING_INFO_TEXT), __filters__["file"][1], "files") Filtering.__output_xml_section__(_(FILTERING_AUTHOR_INFO_TEXT), __filters__["author"][1], "authors") Filtering.__output_xml_section__(_(FILTERING_EMAIL_INFO_TEXT), __filters__["email"][1], "emails") - Filtering.__output_xml_section__(_(FILTERING_EMAIL_INFO_TEXT), __filters__["revision"][1].union(), "revisions") + Filtering.__output_xml_section__(_(FILTERING_COMMIT_INFO_TEXT), __filters__["revision"][1].union(), "revisions") print("\t")