From 7f76fb51d74d25001de6f3a1f4d1749e47ae9fbf Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 23 May 2003 23:28:15 +0000 Subject: [PATCH] Return month in unicode svn: r1590 --- src/Calendar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Calendar.py b/src/Calendar.py index 581d19135..14fbfb2bc 100644 --- a/src/Calendar.py +++ b/src/Calendar.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2001 Donald N. Allingham +# Copyright (C) 2001-2003 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -149,7 +149,7 @@ class Calendar: def month(self,val): try: - return Calendar.MONTHS[val-1] + return unicode(Calendar.MONTHS[val-1]) except: return "Illegal Month" @@ -437,9 +437,9 @@ class Calendar: match = fmt2.match(text) if match != None: - matches = match.groups() + matches = match.groups() mode = self.set_mode_value(matches[0]) - month = self.set_month_string(matches[2]) + month = self.set_month_string(unicode(matches[2])) if month != UNDEF: day = self.set_value(matches[1]) if len(matches) == 4 and matches[3] != None: