diff --git a/src/ReadXML.py b/src/ReadXML.py index a8847062c..49a71cbfd 100644 --- a/src/ReadXML.py +++ b/src/ReadXML.py @@ -133,7 +133,6 @@ def loadData(database, filename, callback=None): f.close() except IOError,msg: use_gzip = 0 - f.close() else: use_gzip = 0 diff --git a/src/plugins/RelCalc.py b/src/plugins/RelCalc.py index 3b01de59d..3e89e0735 100644 --- a/src/plugins/RelCalc.py +++ b/src/plugins/RelCalc.py @@ -226,9 +226,9 @@ class RelCalc: text = secondName + get_prefix(firstRel-1,"niece") + firstName + "." else: if secondRel > firstRel: - text = secondName + cousin(secondRel-1,secondRel-firstRel) + firstName + "." + text = secondName + cousin(firstRel-1,secondRel-firstRel) + firstName + "." else: - text = secondName + cousin(firstRel-1,firstRel-secondRel) + firstName + "." + text = secondName + cousin(secondRel-1,firstRel-secondRel) + firstName + "." text1 = self.glade.get_widget("text1") text1.set_point(0)