parameters: (self, day, weekday, width)
return_statement: return s.center(width)
docstring: Returns a formatted day.
docstring_summary: Returns a formatted day.
docstring_tokens: Returns a formatted day .
function: def formatday(self, day, weekday, width):
          """
          Returns a formatted day.
          """
          if day == 0:
              s = ''
          else:
              s = '%2i' % day             # right-align single-digit days
          return s.center(width)
function_tokens: def formatday ( self , day , weekday , width ) : if day == 0 : s = '' else : s = '%2i' % day # right-align single-digit days return s . center ( width )