summaryrefslogtreecommitdiff
path: root/Lib/calendar.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-03-22 18:07:49 +0000
committerSkip Montanaro <skip@pobox.com>2002-03-22 18:07:49 +0000
commitfd0446ff010c548051b186349ec3ebaa6892e7b8 (patch)
tree7662f3c80c22b1cc3b28df84f0da384018aab4ca /Lib/calendar.py
parentd19a1151d0925732383fa86260038f0643f5a956 (diff)
downloadcpython-fd0446ff010c548051b186349ec3ebaa6892e7b8.tar.gz
guarantee that the dst flag of synthetic "time" tuples passed to strftime
is always 0. This closes bug #533234.
Diffstat (limited to 'Lib/calendar.py')
-rw-r--r--Lib/calendar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py
index 9af2c933f1..9ae768af66 100644
--- a/Lib/calendar.py
+++ b/Lib/calendar.py
@@ -33,7 +33,7 @@ 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,)*9).capitalize()
+ return strftime(self.format, (item,)*8+(0,)).capitalize()
elif isinstance(item, type(slice(0))):
return [self[e] for e in range(self.len)].__getslice__(item.start, item.stop)
def __len__(self):