From f6b043da6f79bcf97fa6c89f31e32bc5ff41ded6 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 10 Apr 2013 17:39:19 +0000 Subject: [PATCH] 6599: Fix python3 error svn: r21944 --- gramps/gen/filters/_filterparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/filters/_filterparser.py b/gramps/gen/filters/_filterparser.py index e51b2749c..3370284d0 100644 --- a/gramps/gen/filters/_filterparser.py +++ b/gramps/gen/filters/_filterparser.py @@ -84,7 +84,7 @@ class FilterParser(handler.ContentHandler): self.f.set_comment(attrs['comment']) self.gfilter_list.add(self.namespace, self.f) elif tag == "rule": - if attrs.has_key('use_regex'): + if 'use_regex' in attrs: self.use_regex = attrs['use_regex'] == 'True' else: self.use_regex = False