[Python-Dev] A small patch.

Sreenivas Reddy T thatiparthysreenivas at gmail.com
Wed Nov 6 20:17:42 CET 2013


diff -r bec6df56c053 Lib/datetime.py
--- a/Lib/datetime.py    Tue Nov 05 22:01:46 2013 +0200
+++ b/Lib/datetime.py    Thu Nov 07 00:46:34 2013 +0530
@@ -43,7 +43,7 @@

 def _days_in_month(year, month):
     "year, month -> number of days in that month in that year."
-    assert 1 <= month <= 12, month
+    assert 1 <= month <= 12, 'month must be in 1..12'
     if month == 2 and _is_leap(year):
         return 29
     return _DAYS_IN_MONTH[month]

Best Regards,
Srinivas Reddy Thatiparthy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20131107/f3299c43/attachment.html>


More information about the Python-Dev mailing list