X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fopdate.py;h=6d230860dcaa3c92d9be8897e04133e801260fd2;hb=e75d2c94f9bd326ebaace635a06599a1be35b024;hp=46b9916b401556e5d2e1bec5c7a2b8128c4036d0;hpb=87ed070d1b1776366d3ddd15eef1f37a45c585ea;p=m_lib.git diff --git a/m_lib/opdate.py b/m_lib/opdate.py index 46b9916..6d23086 100755 --- a/m_lib/opdate.py +++ b/m_lib/opdate.py @@ -75,7 +75,7 @@ def DaysInMonth(Month, Year): return 28+IsLeapYear(_setYear(Year)) else: - raise opdate_error, "bad month `%s'" % str(Month) + raise opdate_error("bad month `%s'" % str(Month)) def ValidDate(Day, Month, Year): @@ -235,7 +235,7 @@ def DateDiff(Date1, Date2): def DayOfWeek(Julian): """ Return the day of the week for the date. Returns DayType(7) if Julian == BadDate. """ if Julian == BadDate: - raise opdate_error, "bad date `%s'" % str(Julian) + raise opdate_error("bad date `%s'" % str(Julian)) else: return (Julian+FirstDayOfWeek) % 7