* src/Date.py (__cmp__): check for Date instance before compare
* src/plugins/DetAncestralReport.py: fixed i18n strings * src/ReadGedcom.py: handle FTM style of child/parent relationship translation * src/gedcomimport.py: svn: r4403
This commit is contained in:
@@ -135,7 +135,10 @@ class Date:
|
||||
Comparison function. Allows the usage of equality tests.
|
||||
This allows you do run statements like 'date1 <= date2'
|
||||
"""
|
||||
return cmp(self.sortval,other.sortval)
|
||||
if isinstance(other,Date):
|
||||
return cmp(self.sortval,other.sortval)
|
||||
else:
|
||||
return -1
|
||||
|
||||
def is_equal(self,other):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user