@@ -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:
@@ -1049,16 +1049,16 @@ def format_interval(
10491049
10501050 >>> from datetime import date, time
10511051 >>> format_interval(date(2016, 1, 15), date(2016, 1, 17), "yMd", locale="fi")
1052- '15.\u2013 17 .1.2016'
1052+ '15.–17 .1.2016'
10531053
10541054 >>> format_interval(time(12, 12), time(16, 16), "Hm", locale="en_GB")
1055- '12:12\u2013 16 :16'
1055+ '12:12–16 :16'
10561056
10571057 >>> format_interval(time(5, 12), time(16, 16), "hm", locale="en_US")
10581058 '5:12\u202f AM\u2009 –\u2009 4:16\u202f PM'
10591059
10601060 >>> format_interval(time(16, 18), time(16, 24), "Hm", locale="it")
1061- '16:18\u2013 16 :24'
1061+ '16:18–16 :24'
10621062
10631063 If the start instant equals the end instant, the interval is formatted like the instant.
10641064
@@ -1068,10 +1068,10 @@ def format_interval(
10681068 Unknown skeletons fall back to "default" formatting.
10691069
10701070 >>> format_interval(date(2015, 1, 1), date(2017, 1, 1), "wzq", locale="ja")
1071- '2015/01/01\uff5e 2017 /01/01'
1071+ '2015/01/01~2017 /01/01'
10721072
10731073 >>> format_interval(time(16, 18), time(16, 24), "xxx", locale="ja")
1074- '16:18:00\uff5e 16 :24:00'
1074+ '16:18:00~16 :24:00'
10751075
10761076 >>> format_interval(date(2016, 1, 15), date(2016, 1, 17), "xxx", locale="de")
10771077 '15.01.2016\u2009 –\u2009 17.01.2016'
@@ -1884,17 +1884,17 @@ def split_interval_pattern(pattern: str) -> list[str]:
18841884 - https://www.unicode.org/reports/tr35/tr35-dates.html#intervalFormats
18851885
18861886 >>> split_interval_pattern('E d.M. – E d.M.')
1887- ['E d.M. \u2013 ', 'E d.M.']
1887+ ['E d.M. – ', 'E d.M.']
18881888 >>> split_interval_pattern("Y 'text' Y 'more text'")
18891889 ["Y 'text '", "Y 'more text'"]
18901890 >>> split_interval_pattern('E, MMM d – E')
1891- ['E, MMM d \u2013 ', 'E']
1891+ ['E, MMM d – ', 'E']
18921892 >>> split_interval_pattern("MMM d")
18931893 ['MMM d']
18941894 >>> split_interval_pattern("y G")
18951895 ['y G']
18961896 >>> split_interval_pattern('MMM d – d')
1897- ['MMM d \u2013 ', 'd']
1897+ ['MMM d – ', 'd']
18981898
18991899 :param pattern: Interval pattern string
19001900 :return: list of "subpatterns"
0 commit comments