From: Walter Dörwald Date: Tue, 28 Aug 2007 16:38:26 +0000 (+0000) Subject: Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for X-Git-Tag: v2.6a1~1397 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0d1c1f3ec824f908b5e36586c12925a26d6d97b;p=thirdparty%2FPython%2Fcpython.git Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for HTMLCalender.formatyearpage() (there's no themonth parameter). This fixes issue1046. --- diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst index 68cbeb67e74f..aa13c819e14c 100644 --- a/Doc/library/calendar.rst +++ b/Doc/library/calendar.rst @@ -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 diff --git a/Lib/calendar.py b/Lib/calendar.py index a5e15971d35d..84fabc75c700 100644 --- a/Lib/calendar.py +++ b/Lib/calendar.py @@ -471,7 +471,7 @@ class HTMLCalendar(Calendar): a('\n' % encoding) if css is not None: a('\n' % css) - a('Calendar for %d</title\n' % theyear) + a('<title>Calendar for %d\n' % theyear) a('\n') a('\n') a(self.formatyear(theyear, width))