[New-bugs-announce] [issue1046] HTMLCalendar.formatyearpage not behaving as documented

inefab report at bugs.python.org
Tue Aug 28 18:07:04 CEST 2007

New submission from inefab:

The function HTMLCalendar.formatyearpage in module calendar takes at
most 5 arguments (year, month, css, encoding) whereas documentation
(http://docs.python.org/lib/module-calendar.html) says it takes at most
6 (theyear, themonth[, width[, css[, encoding]]]). 

Also, the title tag in the head of the produced document with (year,
month, css) as arguments isn't properly closed ; the line is
<title>Calendar for 2008</title
when it should be
<title>Calendar for 2008</title>

This happend with linux (debian sid), with Python 2.5.1

Note: I haven't tested if the encoding did what it should 

Joined files :
 - HTMLyearbug.py: reproduces the bug
 - 2008cal.html: the output produced by this file

components: Extension Modules
files: cal.py
messages: 55376
nosy: inefab
severity: normal
status: open
title: HTMLCalendar.formatyearpage not behaving as documented
type: behavior
versions: Python 2.5

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cal.py
Type: text/x-python
Size: 557 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20070828/8de7785e/attachment.py 

More information about the New-bugs-announce mailing list