From a79457e20b8917c7d827b3ea63159e418b0eb3a4 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 20 Aug 2004 13:44:48 +0000 Subject: [PATCH] 2004-08-20 Tim Waugh * src/RelLib.py (Event.are_equal): Fixed comparison with None. svn: r3451 --- ChangeLog | 3 +++ src/RelLib.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bae179484..4893c5e86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2004-08-20 Tim Waugh + * src/RelLib.py (Event.are_equal): Fixed comparison with None. + 2004-08-20 Don Allingham * src/plugins/RelCalc.py: use empty string instead of None * src/EditPerson.py: pychecker fixes diff --git a/src/RelLib.py b/src/RelLib.py index b98feb44b..8a972a737 100644 --- a/src/RelLib.py +++ b/src/RelLib.py @@ -898,7 +898,7 @@ class Event(PrimaryObject,DataObj): def are_equal(self,other): """returns 1 if the specified event is the same as the instance""" if other == None: - return 0 + other = Event (None) if (self.name != other.name or self.place != other.place or self.description != other.description or self.cause != other.cause or self.private != other.private or