| 31 | # This is trick for backward compatibility. Since 3.13, we will raise IllegalMonthError instead of |
| 32 | # IndexError for bad month number(out of 1-12). But we can't remove IndexError for backward compatibility. |
| 33 | class IllegalMonthError(ValueError, IndexError): |
| 34 | def __init__(self, month): |
| 35 | self.month = month |
| 36 | def __str__(self): |
| 37 | return "bad month number %r; must be 1-12" % self.month |
| 38 | |
| 39 | |
| 40 | class IllegalWeekdayError(ValueError): |
no outgoing calls
no test coverage detected
searching dependent graphs…