Kaydet (Commit) e8c6a3ee authored tarafından Skip Montanaro's avatar Skip Montanaro

guarantee that the dst flag of synthetic "time" tuples passed to strftime

is always 0.  This closes bug #533234.
üst 92b48b73
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment