From f20c3c18958f7681849f308ee69cb828822b2c3e Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Tue, 25 Jun 2013 16:37:18 +0200 Subject: [PATCH] Made some changes to ensure compatibility in Python 2 with gettext. The gettext.install() functions supplies a way to force it to return unicode which helps with compatibility between Python 2 & 3. To make it work properly when merging those returned string with strings in the different modules of gitinspector we also had to do some changes to make sure all string literals are in unicode. --- gitinspector/comment.py | 2 ++ gitinspector/extensions.py | 1 + gitinspector/filtering.py | 3 ++- gitinspector/format.py | 1 + gitinspector/gitinspector.py | 1 + gitinspector/help.py | 1 + gitinspector/interval.py | 2 ++ gitinspector/localization.py | 3 ++- gitinspector/missing.py | 1 + gitinspector/outputable.py | 7 ++++--- gitinspector/responsibilities.py | 1 + gitinspector/timeline.py | 1 + gitinspector/version.py | 1 + 13 files changed, 20 insertions(+), 5 deletions(-) diff --git a/gitinspector/comment.py b/gitinspector/comment.py index 00744cb..6675a47 100644 --- a/gitinspector/comment.py +++ b/gitinspector/comment.py @@ -17,6 +17,8 @@ # You should have received a copy of the GNU General Public License # along with gitinspector. If not, see . +from __future__ import unicode_literals + __comment_begining__ = {"java": "/*", "c": "/*", "cpp": "/*", "h": "/*", "hpp": "/*", "html": "