MCPcopy Index your code
hub / github.com/RustPython/RustPython / IllegalMonthError

Class IllegalMonthError

Lib/calendar.py:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

_validate_monthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected