From 902b1847a5784f06be162240d03ae37056e8f04c Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 29 Jan 2003 04:50:10 +0000 Subject: [PATCH] Pychecker fixes svn: r1276 --- gramps2/src/GenericFilter.py | 2 +- gramps2/src/StyleEditor.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps2/src/GenericFilter.py b/gramps2/src/GenericFilter.py index 52f79beda..1a460f5be 100644 --- a/gramps2/src/GenericFilter.py +++ b/gramps2/src/GenericFilter.py @@ -297,7 +297,7 @@ class IsMale(Rule): return 'Is a male' def apply(self,db,p): - return p.getGender() == Person.Person.male + return p.getGender() == RelLib.Person.male #------------------------------------------------------------------------- # diff --git a/gramps2/src/StyleEditor.py b/gramps2/src/StyleEditor.py index c5b766f34..a9f5abe3a 100644 --- a/gramps2/src/StyleEditor.py +++ b/gramps2/src/StyleEditor.py @@ -41,6 +41,7 @@ import Utils import const import TextDoc import ListModel +from intl import gettext as _ class StyleListDisplay: """