2004-08-20 Tim Waugh <twaugh@redhat.com>
* src/RelLib.py (Event.are_equal): Fixed comparison with None. svn: r3451
This commit is contained in:
parent
0175cf1bbf
commit
7d259a6349
@ -1,3 +1,6 @@
|
|||||||
|
2004-08-20 Tim Waugh <twaugh@redhat.com>
|
||||||
|
* src/RelLib.py (Event.are_equal): Fixed comparison with None.
|
||||||
|
|
||||||
2004-08-20 Don Allingham <dallingham@users.sourceforge.net>
|
2004-08-20 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/plugins/RelCalc.py: use empty string instead of None
|
* src/plugins/RelCalc.py: use empty string instead of None
|
||||||
* src/EditPerson.py: pychecker fixes
|
* src/EditPerson.py: pychecker fixes
|
||||||
|
@ -898,7 +898,7 @@ class Event(PrimaryObject,DataObj):
|
|||||||
def are_equal(self,other):
|
def are_equal(self,other):
|
||||||
"""returns 1 if the specified event is the same as the instance"""
|
"""returns 1 if the specified event is the same as the instance"""
|
||||||
if other == None:
|
if other == None:
|
||||||
return 0
|
other = Event (None)
|
||||||
if (self.name != other.name or self.place != other.place or
|
if (self.name != other.name or self.place != other.place or
|
||||||
self.description != other.description or self.cause != other.cause or
|
self.description != other.description or self.cause != other.cause or
|
||||||
self.private != other.private or
|
self.private != other.private or
|
||||||
|
Loading…
Reference in New Issue
Block a user