Make sure end is datetime.date. tls-sprint
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Thu, 07 May 2009 02:47:06 -0700
branchtls-sprint
changeset 1711 182536159750
parent 1710 8c717cc0b353
child 1712 32ab85031814
Make sure end is datetime.date.
utils.py
--- a/utils.py	Wed May 06 18:13:32 2009 +0200
+++ b/utils.py	Thu May 07 02:47:06 2009 -0700
@@ -72,6 +72,7 @@
     """
     assert not (incday and incmonth)
     begin = todate(begin)
+    end = todate(end)
     if incmonth:
         while begin < end:
             begin = next_month(begin, incmonth)