Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8c6a3e

Browse files
author
Skip Montanaro
committed
guarantee that the dst flag of synthetic "time" tuples passed to strftime
is always 0. This closes bug #533234.
1 parent 92b48b7 commit e8c6a3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/calendar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __getitem__(self, item):
3333
if item < 0: item += self.len
3434
if not 0 <= item < self.len:
3535
raise IndexError, "out of range"
36-
return strftime(self.format, (item,)*9).capitalize()
36+
return strftime(self.format, (item,)*8+(0,)).capitalize()
3737
elif isinstance(item, type(slice(0))):
3838
return [self[e] for e in range(self.len)].__getslice__(item.start, item.stop)
3939
def __len__(self):

0 commit comments

Comments
 (0)