Index: Lib/calendar.py =================================================================== --- Lib/calendar.py (revision 63918) +++ Lib/calendar.py (working copy) @@ -514,15 +514,11 @@ else: names = day_abbr name = names[day] - if encoding is not None: - name = name.decode(encoding) return name[:width].center(width) def formatmonthname(self, theyear, themonth, width, withyear=True): with TimeEncoding(self.locale) as encoding: s = month_name[themonth] - if encoding is not None: - s = s.decode(encoding) if withyear: s = "%s %r" % (s, theyear) return s.center(width) @@ -544,15 +540,11 @@ def formatweekday(self, day): with TimeEncoding(self.locale) as encoding: s = day_abbr[day] - if encoding is not None: - s = s.decode(encoding) return '%s' % (self.cssclasses[day], s) def formatmonthname(self, theyear, themonth, withyear=True): with TimeEncoding(self.locale) as encoding: s = month_name[themonth] - if encoding is not None: - s = s.decode(encoding) if withyear: s = '%s %s' % (s, theyear) return '%s' % s