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

Method formatweek

Lib/calendar.py:371–375  ·  view source on GitHub ↗

Returns a single week in a string (no newline).

(self, theweek, width)

Source from the content-addressed store, hash-verified

369 return s.center(width)
370
371 def formatweek(self, theweek, width):
372 """
373 Returns a single week in a string (no newline).
374 """
375 return ' '.join(self.formatday(d, wd, width) for (d, wd) in theweek)
376
377 def formatweekday(self, day, width):
378 """

Callers 4

prweekMethod · 0.95
formatmonthMethod · 0.95
formatyearMethod · 0.95
test_formatweekMethod · 0.45

Calls 2

formatdayMethod · 0.95
joinMethod · 0.45

Tested by 1

test_formatweekMethod · 0.36