]> granicus.if.org Git - python/commitdiff
Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for
authorWalter Dörwald <walter@livinglogic.de>
Tue, 28 Aug 2007 16:38:26 +0000 (16:38 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 28 Aug 2007 16:38:26 +0000 (16:38 +0000)
HTMLCalender.formatyearpage() (there's no themonth parameter).

This fixes issue1046.

Doc/library/calendar.rst
Lib/calendar.py

index 68cbeb67e74f3cff03c36736f3b431d2a568f661..aa13c819e14c8f1baf164e98f1c4f0309256a421 100644 (file)
@@ -162,7 +162,7 @@ it's the base calendar for all computations.
    the number of months per row.
 
 
-.. method:: HTMLCalendar.formatyearpage(theyear, themonth[, width[, css[, encoding]]])
+.. method:: HTMLCalendar.formatyearpage(theyear[, width[, css[, encoding]]])
 
    Return a year's calendar as a complete HTML page. *width* (defaulting to 3)
    specifies the number of months per row. *css* is the name for the cascading
index a5e15971d35d267dd0b166dcfef315bb82782d31..84fabc75c70062435fb98289a4c39523a952551e 100644 (file)
@@ -471,7 +471,7 @@ class HTMLCalendar(Calendar):
         a('<meta http-equiv="Content-Type" content="text/html; charset=%s" />\n' % encoding)
         if css is not None:
             a('<link rel="stylesheet" type="text/css" href="%s" />\n' % css)
-        a('<title>Calendar for %d</title\n' % theyear)
+        a('<title>Calendar for %d</title>\n' % theyear)
         a('</head>\n')
         a('<body>\n')
         a(self.formatyear(theyear, width))