HTMLCalendar.formatyearpage not behaving as documented #45387
Copy link
Copy link
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
| BPO | 1046 |
|---|---|
| Nosy | @doerwalter |
| Files |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = <Date 2007-08-28.16:38:50.993>
created_at = <Date 2007-08-28.16:07:04.827>
labels = ['extension-modules', 'type-bug']
title = 'HTMLCalendar.formatyearpage not behaving as documented'
updated_at = <Date 2007-08-28.16:38:50.969>
user = 'https://bugs.python.org/inefab'bugs.python.org fields:
activity = <Date 2007-08-28.16:38:50.969>
actor = 'doerwalter'
assignee = 'none'
closed = True
closed_date = <Date 2007-08-28.16:38:50.993>
closer = 'doerwalter'
components = ['Extension Modules']
creation = <Date 2007-08-28.16:07:04.827>
creator = 'inefab'
dependencies = []
files = ['8343', '8344']
hgrepos = []
issue_num = 1046
keywords = []
message_count = 3.0
messages = ['55376', '55377', '55378']
nosy_count = 2.0
nosy_names = ['doerwalter', 'inefab']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1046'
versions = ['Python 2.5']Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
inefab commentedon Aug 28, 2007
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 :
inefab commentedon Aug 28, 2007
uploaded 2008cal.html
doerwalter commentedon Aug 28, 2007
Fixed in r57620