diff --git a/src/Filters/_FilterParser.py b/src/Filters/_FilterParser.py index 44ddce4d6..d70636464 100644 --- a/src/Filters/_FilterParser.py +++ b/src/Filters/_FilterParser.py @@ -57,7 +57,7 @@ class FilterParser(handler.ContentHandler): def startElement(self, tag, attrs): if tag == "object": - if 'type' in attrs: + if attrs.has_key('type'): self.namespace = attrs['type'] if self.namespace == 'Media': self.namespace = 'MediaObject' diff --git a/src/GrampsDbUtils/_GedcomStageOne.py b/src/GrampsDbUtils/_GedcomStageOne.py index 2f0ad38bf..c01782592 100644 --- a/src/GrampsDbUtils/_GedcomStageOne.py +++ b/src/GrampsDbUtils/_GedcomStageOne.py @@ -79,6 +79,7 @@ def add_to_list(table, key, value): Add the value to the table entry associated with key. If the entry does not exist, it is added. """ + print type(table) if key in table: table[key].append(value) else: