original_docstring: 
          Returns a year's calendar as a multi-line string.
          
docstring: Returns a year's calendar as a multi-line string.
docstring_tokens: Returns a year ' s calendar as a multi - line string .
code: def formatyear(self, theyear, w=2, l=1, c=6, m=3):
          """
          Returns a year's calendar as a multi-line string.
          """
          w = max(2, w)
          l = max(1, l)
          c = max(2, c)
          colwidth = (w + 1) * 7 - 1
          v = []
          a = v.append
          a(repr(theyear).center(colwidth * m + c * (m - 1)).rstrip())
          a('\n' * l)
          header = self.formatweekheader(w)
          for i, row in enumerate(self.yeardays2calendar(theyear, m)):
              months = range(m * i + 1, min(m * (i + 1) + 1, 13))
              a('\n' * l)
              names = (self.formatmonthname(theyear, k, colwidth, False) for k in months)
              a(formatstring(names, colwidth, c).rstrip())
              a('\n' * l)
              headers = (header for k in months)
              a(formatstring(headers, colwidth, c).rstrip())
              a('\n' * l)
              height = max((len(cal) for cal in row))
              for j in range(height):
                  weeks = []
                  for cal in row:
                      if j >= len(cal):
                          weeks.append('')
                      else:
                          weeks.append(self.formatweek(cal[j], w))
  
                  a(formatstring(weeks, colwidth, c).rstrip())
                  a('\n' * l)
  
          return ''.join(v)
code_tokens: def formatyear ( self , theyear , w = 2 , l = 1 , c = 6 , m = 3 ) : w = max ( 2 , w ) l = max ( 1 , l ) c = max ( 2 , c ) colwidth = ( w + 1 ) * 7 - 1 v = [ ] a = v . append a ( repr ( theyear ) . center ( colwidth * m + c * ( m - 1 ) ) . rstrip ( ) ) a ( '\n' * l ) header = self . formatweekheader ( w ) for i , row in enumerate ( self . yeardays2calendar ( theyear , m ) ) : months = range ( m * i + 1 , min ( m * ( i + 1 ) + 1 , 13 ) ) a ( '\n' * l ) names = ( self . formatmonthname ( theyear , k , colwidth , False ) for k in months ) a ( formatstring ( names , colwidth , c ) . rstrip ( ) ) a ( '\n' * l ) headers = ( header for k in months ) a ( formatstring ( headers , colwidth , c ) . rstrip ( ) ) a ( '\n' * l ) height = max ( ( len ( cal ) for cal in row ) ) for j in range ( height ) : weeks = [ ] for cal in row : if j >= len ( cal ) : weeks . append ( '' ) else : weeks . append ( self . formatweek ( cal [ j ] , w ) ) a ( formatstring ( weeks , colwidth , c ) . rstrip ( ) ) a ( '\n' * l ) return '' . join ( v )
short_docstring: Returns a year's calendar as a multi-line string.
short_docstring_tokens: Returns a year ' s calendar as a multi - line string .
comment: """
          Returns a year's calendar as a multi-line string.
          """