From c402481385bdaab3972bacd120bf1dcc4310089a Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 21 Jun 2001 23:58:44 +0000 Subject: [PATCH] Fix syntax error svn: r175 --- gramps/src/GrampsParser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/src/GrampsParser.py b/gramps/src/GrampsParser.py index 728a9665c..ce84ce2d2 100644 --- a/gramps/src/GrampsParser.py +++ b/gramps/src/GrampsParser.py @@ -34,7 +34,7 @@ if sys.version[0] != '1': sax = 2 try: from _xmlplus.sax import handler - else: + except: from xml.sax import handler else: try: @@ -494,7 +494,7 @@ class GrampsParser(handler.ContentHandler): # #--------------------------------------------------------------------- def stop_gender(self,tag): - self.person.gender = (tag == "M") + self.person.gender = (u2l(tag) == "M") #--------------------------------------------------------------------- # @@ -535,7 +535,7 @@ class GrampsParser(handler.ContentHandler): #--------------------------------------------------------------------- def stop_sdate(self,tag): date = Date() - date.quick_set(tag) + date.quick_set(u2l(tag)) self.source_ref.setDate(date) def stop_street(self,tag):