]> granicus.if.org Git - python/commitdiff
guarantee that the dst flag of synthetic "time" tuples passed to strftime
authorSkip Montanaro <skip@pobox.com>
Fri, 22 Mar 2002 18:07:49 +0000 (18:07 +0000)
committerSkip Montanaro <skip@pobox.com>
Fri, 22 Mar 2002 18:07:49 +0000 (18:07 +0000)
is always 0.  This closes bug #533234.

Lib/calendar.py

index 9af2c933f1abc4b20a976ac3a5a963d256706636..9ae768af667d433c9bc72f3e025ab350474c3651 100644 (file)
@@ -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):