aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-09-27 17:03:51 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-09-27 17:09:52 +0100
commit1fab05a885a308c19cf42b72fd36805ddf27fdc8 (patch)
treecbc7d1d414508e968e27cec357f87055688f11f5 /libstdc++-v3
parent0f205d089c27ac04fb983a1b2be38cae0d83e5c7 (diff)
downloadgcc-1fab05a885a308c19cf42b72fd36805ddf27fdc8.zip
gcc-1fab05a885a308c19cf42b72fd36805ddf27fdc8.tar.gz
gcc-1fab05a885a308c19cf42b72fd36805ddf27fdc8.tar.bz2
libstdc++: Fix format string in StdChronoTimeZoneRulePrinter
libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (StdChronoTimeZoneRulePrinter): Fix incorrect number of replacement fields.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index c0056de..d60c800 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -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