Skip to content

Commit fb1c19c

Browse files
authored
Use CLDR47 (#1210)
1 parent 69c5db8 commit fb1c19c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

babel/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ def get_period_id(
11621162
'midnight'
11631163
11641164
>>> get_period_id(time(0), type="selection", locale="en_US")
1165-
'night1'
1165+
'morning1'
11661166
11671167
:param time: The time to inspect.
11681168
:param tzinfo: The timezone for the time. See ``format_time``.

scripts/download_import_cldr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
import zipfile
1010
from urllib.request import urlretrieve
1111

12-
URL = 'https://unicode.org/Public/cldr/46/cldr-common-46.0.zip'
13-
FILENAME = 'cldr-common-46.0.zip'
12+
URL = 'https://unicode.org/Public/cldr/47/cldr-common-47.zip'
13+
FILENAME = 'cldr-common-47.0.zip'
1414
# Via https://unicode.org/Public/cldr/45/hashes/SHASUM512.txt
15-
FILESUM = '316d644b79a4976d4da57d59ca57c689b339908fe61bb49110bfe1a9269c94144cb27322a0ea080398e6dc4c54a16752fd1ca837e14c054b3a6806b1ef9d3ec3'
15+
FILESUM = '3b1eb2a046dae23cf16f611f452833e2a95affb1aa2ae3fa599753d229d152577114c2ff44ca98a7f369fa41dc6f45b0d7a6647653ca79694aacfd3f3be59801'
1616
BLKSIZE = 131072
1717

1818

tests/test_day_periods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
("fi", time(0), "midnight"), # (at)
1212
("en_US", time(12), "noon"), # (at)
1313
("en_US", time(21), "night1"), # (from, before) across 0:00
14-
("en_US", time(5), "night1"), # (from, before) across 0:00
14+
("en_US", time(5), "morning1"), # (from, before) across 0:00
1515
("en_US", time(6), "morning1"), # (from, before)
1616
("agq", time(10), "am"), # no periods defined
1717
("agq", time(22), "pm"), # no periods defined

0 commit comments

Comments
 (0)