@@ -495,7 +495,7 @@ def get_timezone_location(
495495
496496 >>> tz = get_timezone('Europe/Berlin')
497497 >>> get_timezone_name(tz, locale='de_DE')
498- 'Mitteleurop \\ xe4ische Zeit'
498+ 'Mitteleuropäische Zeit'
499499
500500 .. versionadded:: 0.9
501501
@@ -586,9 +586,9 @@ def get_timezone_name(
586586
587587 >>> tz = get_timezone('Europe/Berlin')
588588 >>> get_timezone_name(tz, locale='de_DE')
589- 'Mitteleurop\xe4ische Zeit'
589+ 'Mitteleuropäische Zeit'
590590 >>> get_timezone_name(tz, locale='pt_BR')
591- 'Hor\xe1rio da Europa Central'
591+ 'Horário da Europa Central'
592592
593593 On the other hand, if the country uses multiple timezones, the city is also
594594 included in the representation:
@@ -1051,16 +1051,16 @@ def format_interval(
10511051
10521052 >>> from datetime import date, time
10531053 >>> format_interval(date(2016, 1, 15), date(2016, 1, 17), "yMd", locale="fi")
1054- '15.\u2013 17 .1.2016'
1054+ '15.–17 .1.2016'
10551055
10561056 >>> format_interval(time(12, 12), time(16, 16), "Hm", locale="en_GB")
1057- '12:12\u2013 16 :16'
1057+ '12:12–16 :16'
10581058
10591059 >>> format_interval(time(5, 12), time(16, 16), "hm", locale="en_US")
10601060 '5:12\u202f AM\u2009 –\u2009 4:16\u202f PM'
10611061
10621062 >>> format_interval(time(16, 18), time(16, 24), "Hm", locale="it")
1063- '16:18\u2013 16 :24'
1063+ '16:18–16 :24'
10641064
10651065 If the start instant equals the end instant, the interval is formatted like the instant.
10661066
@@ -1070,10 +1070,10 @@ def format_interval(
10701070 Unknown skeletons fall back to "default" formatting.
10711071
10721072 >>> format_interval(date(2015, 1, 1), date(2017, 1, 1), "wzq", locale="ja")
1073- '2015/01/01\uff5e 2017 /01/01'
1073+ '2015/01/01~2017 /01/01'
10741074
10751075 >>> format_interval(time(16, 18), time(16, 24), "xxx", locale="ja")
1076- '16:18:00\uff5e 16 :24:00'
1076+ '16:18:00~16 :24:00'
10771077
10781078 >>> format_interval(date(2016, 1, 15), date(2016, 1, 17), "xxx", locale="de")
10791079 '15.01.2016\u2009 –\u2009 17.01.2016'
@@ -1889,17 +1889,17 @@ def split_interval_pattern(pattern: str) -> list[str]:
18891889 - https://www.unicode.org/reports/tr35/tr35-dates.html#intervalFormats
18901890
18911891 >>> split_interval_pattern('E d.M. – E d.M.')
1892- ['E d.M. \u2013 ', 'E d.M.']
1892+ ['E d.M. – ', 'E d.M.']
18931893 >>> split_interval_pattern("Y 'text' Y 'more text'")
18941894 ["Y 'text '", "Y 'more text'"]
18951895 >>> split_interval_pattern('E, MMM d – E')
1896- ['E, MMM d \u2013 ', 'E']
1896+ ['E, MMM d – ', 'E']
18971897 >>> split_interval_pattern("MMM d")
18981898 ['MMM d']
18991899 >>> split_interval_pattern("y G")
19001900 ['y G']
19011901 >>> split_interval_pattern('MMM d – d')
1902- ['MMM d \u2013 ', 'd']
1902+ ['MMM d – ', 'd']
19031903
19041904 :param pattern: Interval pattern string
19051905 :return: list of "subpatterns"
0 commit comments