Fixed error in cousin relation.

svn: r11018
This commit is contained in:
Peter Landgren 2008-09-04 13:44:46 +00:00
parent 0254a5177f
commit 1bbdd4e04e

View File

@ -186,10 +186,6 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
result.append('mor')
if inlaw != '' :
inlaw = 'ingifta '
if len(result) % 2 != 0:
# Correct string "-1" with genitive s and add a space to get
# correct Swedish, if odd number of ancestors
result[-1] = result[-1] + 's '
result.append(self._get_cousin(level, step, inlaw))
if step != '' and len(result)==1:
result[0] = self.STEP + result[0]