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

Method formatweek

Lib/calendar.py:352–356  ·  view source on GitHub ↗

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

(self, theweek, width)

Source from the content-addressed store, hash-verified

350 return s.center(width)
351
352 def formatweek(self, theweek, width):
353 """
354 Returns a single week in a string (no newline).
355 """
356 return ' '.join(self.formatday(d, wd, width) for (d, wd) in theweek)
357
358 def formatweekday(self, day, width):
359 """

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