diff roundup/date.py @ 1505:c101d2ff5a20

fix to [SF#691071], really this time
author Richard Jones <richard@users.sourceforge.net>
date Mon, 10 Mar 2003 00:22:52 +0000
parents 8ee69708da0c
children 1d4ebe2a88fc
line wrap: on
line diff
--- a/roundup/date.py	Sun Mar 09 23:03:06 2003 +0000
+++ b/roundup/date.py	Mon Mar 10 00:22:52 2003 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: date.py,v 1.46 2003-03-08 20:41:45 kedder Exp $
+# $Id: date.py,v 1.47 2003-03-10 00:22:20 richard Exp $
 
 __doc__ = """
 Date, time and time interval handling.
@@ -354,10 +354,9 @@
     def __cmp__(self, other):
         """Compare this interval to another interval."""
         if other is None:
+            # we are always larger than None
             return 1
         for attr in 'sign year month day hour minute second'.split():
-            if not hasattr(other, attr):
-                return 1
             r = cmp(getattr(self, attr), getattr(other, attr))
             if r:
                 return r

Roundup Issue Tracker: http://roundup-tracker.org/