Mailing List Archive

[issue1046] HTMLCalendar.formatyearpage not behaving as documented
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@bugs.python.org>
<http://bugs.python.org/issue1046>
__________________________________
[issue1046] HTMLCalendar.formatyearpage not behaving as documented [ In reply to ]
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@bugs.python.org>
<http://bugs.python.org/issue1046>
__________________________________
[issue1046] HTMLCalendar.formatyearpage not behaving as documented [ In reply to ]
inefab added the comment:

uploaded 2008cal.html

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1046>
__________________________________
[issue1046] HTMLCalendar.formatyearpage not behaving as documented [ In reply to ]
Walter Dörwald added the comment:

Fixed in r57620

----------
nosy: +doerwalter
resolution: -> fixed
status: open -> closed

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1046>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com