MCPcopy Index your code
hub / github.com/python/cpython / _validate_month

Function _validate_month

Lib/calendar.py:182–184  ·  view source on GitHub ↗
(month)

Source from the content-addressed store, hash-verified

180
181
182def _validate_month(month):
183 if not 1 <= month <= 12:
184 raise IllegalMonthError(month)
185
186def monthrange(year, month):
187 """Return weekday of first day of month (0-6 ~ Mon-Sun)

Callers 4

monthrangeFunction · 0.85
formatmonthnameMethod · 0.85
formatmonthnameMethod · 0.85
mainFunction · 0.85

Calls 1

IllegalMonthErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…