]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix format string in StdChronoTimeZoneRulePrinter
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 Sep 2023 16:03:51 +0000 (17:03 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 27 Sep 2023 16:09:52 +0000 (17:09 +0100)
libstdc++-v3/ChangeLog:

* python/libstdcxx/v6/printers.py (StdChronoTimeZoneRulePrinter):
Fix incorrect number of replacement fields.

libstdc++-v3/python/libstdcxx/v6/printers.py

index c0056de2565a9f4b59007673fda9024648643daf..d60c8003a6359fa270f66d1131fce8661b089bd0 100644 (file)
@@ -2215,7 +2215,7 @@ class StdChronoTimeZoneRulePrinter:
         day = on['day_of_month']
         ordinal_day = '{}{}'.format(day, suffixes.get(day, 'th'))
         if kind == 0:  # DayOfMonth
-            start = '{} {}{}'.format(month, ordinal_day)
+            start = '{} {}'.format(month, ordinal_day)
         else:
             weekday = weekdays[on['day_of_week']]
             if kind == 1:  # LastWeekDay