Update of /cvsroot/freevo/freevo/src/tv In directory sc8-pr-cvs1:/tmp/cvs-serv3558
Modified Files: epg_types.py Log Message: added compare function Index: epg_types.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/tv/epg_types.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epg_types.py 27 Feb 2003 02:03:04 -0000 1.2 --- epg_types.py 8 Mar 2003 17:37:56 -0000 1.3 *************** *** 11,14 **** --- 11,17 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.3 2003/03/08 17:37:56 dischi + # added compare function + # # Revision 1.2 2003/02/27 02:03:04 outlyer # Added support for the xmltv 'sub-title' tag which sometimes contains the *************** *** 82,85 **** --- 85,100 ---- s = '%s to %s %3s %s' % (begins, ends, self.channel_id, self.title) return s + + + def __cmp__(self, other): + """ + compare function, return 0 if the objects are identical, 1 otherwise + """ + if not other: + return 1 + return self.title != other.title or \ + self.start != other.start or \ + self.stop != other.stop or \ + self.channel_id != other.channel_id ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog