[Python-checkins] r57620 - in python/trunk: Doc/library/calendar.rst Lib/calendar.py
walter.doerwald
python-checkins at python.org
Tue Aug 28 18:38:26 CEST 2007
Author: walter.doerwald
Date: Tue Aug 28 18:38:26 2007
New Revision: 57620
Modified:
python/trunk/Doc/library/calendar.rst
python/trunk/Lib/calendar.py
Log:
Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for
HTMLCalender.formatyearpage() (there's no themonth parameter).
This fixes issue1046.
Modified: python/trunk/Doc/library/calendar.rst
==============================================================================
--- python/trunk/Doc/library/calendar.rst (original)
+++ python/trunk/Doc/library/calendar.rst Tue Aug 28 18:38:26 2007
@@ -162,7 +162,7 @@
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
Modified: python/trunk/Lib/calendar.py
==============================================================================
--- python/trunk/Lib/calendar.py (original)
+++ python/trunk/Lib/calendar.py Tue Aug 28 18:38:26 2007
@@ -471,7 +471,7 @@
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))
More information about the Python-checkins
mailing list