projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8c6a3e
)
better solution for bug #533234 courtesy of Tim.
author
Skip Montanaro
<skip@pobox.com>
Fri, 22 Mar 2002 18:35:51 +0000
(18:35 +0000)
committer
Skip Montanaro
<skip@pobox.com>
Fri, 22 Mar 2002 18:35:51 +0000
(18:35 +0000)
Michael: use this version as the bugfix candidate...
Lib/calendar.py
patch
|
blob
|
history
diff --git
a/Lib/calendar.py
b/Lib/calendar.py
index 9ae768af667d433c9bc72f3e025ab350474c3651..cb6354784e5a8aa5e58ff3ad9205a08e90327a10 100644
(file)
--- a/
Lib/calendar.py
+++ b/
Lib/calendar.py
@@
-33,7
+33,8
@@
class _localized_name:
if item < 0: item += self.len
if not 0 <= item < self.len:
raise IndexError, "out of range"
- return strftime(self.format, (item,)*8+(0,)).capitalize()
+ t = (2001, 1, item+1, 12, 0, 0, item, item+1, 0)
+ return strftime(self.format, t).capitalize()
elif isinstance(item, type(slice(0))):
return [self[e] for e in range(self.len)].__getslice__(item.start, item.stop)
def __len__(self):