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

Method __calc_weekday

Lib/_strptime.py:119–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 raise ValueError("timezone changed during initialization")
118
119 def __calc_weekday(self):
120 # Set self.a_weekday and self.f_weekday using the calendar
121 # module.
122 a_weekday = [calendar.day_abbr[i].lower() for i in range(7)]
123 f_weekday = [calendar.day_name[i].lower() for i in range(7)]
124 self.a_weekday = a_weekday
125 self.f_weekday = f_weekday
126
127 def __calc_month(self):
128 # Set self.f_month and self.a_month using the calendar module.

Callers 1

__init__Method · 0.95

Calls 1

lowerMethod · 0.45

Tested by

no test coverage detected