@@ -648,7 +648,7 @@ def formatmonthname(self, theyear, themonth, withyear=True):
648
648
return super ().formatmonthname (theyear , themonth , withyear )
649
649
650
650
651
- class _CLIDemoCalendar (LocaleTextCalendar ):
651
+ class _CLIDemoCalendar (TextCalendar ):
652
652
def __init__ (self , highlight_day = None , * args , ** kwargs ):
653
653
super ().__init__ (* args , ** kwargs )
654
654
self .highlight_day = highlight_day
@@ -752,6 +752,12 @@ def formatyear(self, theyear, w=2, l=1, c=6, m=3):
752
752
return '' .join (v )
753
753
754
754
755
+ class _CLIDemoLocaleCalendar (LocaleTextCalendar , _CLIDemoCalendar ):
756
+ def __init__ (self , highlight_day = None , * args , ** kwargs ):
757
+ super ().__init__ (* args , ** kwargs )
758
+ self .highlight_day = highlight_day
759
+
760
+
755
761
# Support for old module level interface
756
762
c = TextCalendar ()
757
763
@@ -893,7 +899,7 @@ def main(args=None):
893
899
write (cal .formatyearpage (options .year , ** optdict ))
894
900
else :
895
901
if options .locale :
896
- cal = _CLIDemoCalendar (highlight_day = today , locale = locale )
902
+ cal = _CLIDemoLocaleCalendar (highlight_day = today , locale = locale )
897
903
else :
898
904
cal = _CLIDemoCalendar (highlight_day = today )
899
905
cal .setfirstweekday (options .first_weekday )
0 commit comments